tfix: unsigned transactions in gui - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit f549e15a1282526fad8dc69681e6f0bf2739d013 DIR parent fd8687ce182e1ee889ab6d29868152cb2b1a76b9 HTML Author: ThomasV <thomasv@gitorious> Date: Mon, 25 Feb 2013 20:46:38 +0100 fix: unsigned transactions in gui Diffstat: M lib/gui_qt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py t@@ -927,7 +927,9 @@ class ElectrumWindow(QMainWindow): else: filename = 'unsigned_tx' f = open(filename,'w') - f.write(tx) + import json + out = json.dumps({"hex":str(tx), "complete":tx.is_complete, 'input_info':repr(tx.input_info).replace(' ','')}) + f.write(out + '\n') f.close() QMessageBox.information(self, _('Unsigned transaction'), _("Unsigned transaction was saved to file:") + " " +filename, _('OK'))