Browse Source

indent unsigned tx

283
ThomasV 12 years ago
parent
commit
8682608813
  1. 2
      lib/gui_qt.py

2
lib/gui_qt.py

@ -928,7 +928,7 @@ class ElectrumWindow(QMainWindow):
filename = 'unsigned_tx'
f = open(filename,'w')
import json
out = json.dumps({"hex":str(tx), "complete":tx.is_complete, 'input_info':repr(tx.input_info).replace(' ','')})
out = json.dumps({"hex":str(tx), "complete":tx.is_complete, 'input_info':repr(tx.input_info).replace(' ','')}, indent=4)
f.write(out + '\n')
f.close()
QMessageBox.information(self, _('Unsigned transaction'), _("Unsigned transaction was saved to file:") + " " +filename, _('OK'))

Loading…
Cancel
Save