electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 89a4045e3a377f68def0961f4ffc80fa1c552de1
parent 9c122c23eaaba712016a7d233ee0cdb35bb6f689
Author: Amir Taaki <genjix@riseup.net>
Date:   Sun,  2 Sep 2012 19:11:21 +0200

Dump problem tx to temporary file when error happens. This allows developers to debug failed transactions from users by having access to the raw tx dump to see what is wrong.

This would useful in the pro-mode GUI. There should be implemenation for the send method between both these GUIs rather than having their own copy-pasted version. Also the fee system needs fixing.

Diffstat:
Mlib/gui_lite.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -659,6 +659,11 @@ class MiniActuator: status, message = self.wallet.sendtx(tx) if not status: + import tempfile + dumpf = tempfile.NamedTemporaryFile(delete=False) + dumpf.write(tx) + dumpf.close() + print "Dumped error tx to", dumpf.name QMessageBox.warning(parent_window, _('Error'), message, _('OK')) return False