indent unsigned tx
This commit is contained in:
@@ -928,7 +928,7 @@ class ElectrumWindow(QMainWindow):
|
|||||||
filename = 'unsigned_tx'
|
filename = 'unsigned_tx'
|
||||||
f = open(filename,'w')
|
f = open(filename,'w')
|
||||||
import json
|
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.write(out + '\n')
|
||||||
f.close()
|
f.close()
|
||||||
QMessageBox.information(self, _('Unsigned transaction'), _("Unsigned transaction was saved to file:") + " " +filename, _('OK'))
|
QMessageBox.information(self, _('Unsigned transaction'), _("Unsigned transaction was saved to file:") + " " +filename, _('OK'))
|
||||||
|
|||||||
Reference in New Issue
Block a user