1
0

indent unsigned tx

This commit is contained in:
ThomasV
2013-02-25 20:48:45 +01:00
parent f549e15a12
commit 8682608813

View File

@@ -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'))