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.
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