tworkaround #1513 - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 2a23aab24bbdb8f857366c42349b9bf7e7db839c
DIR parent 41820eec298cbd13654eb03cc3ad7ae26816b569
HTML Author: ThomasV <thomasv@electrum.org>
Date: Wed, 28 Oct 2015 07:32:29 +0100
workaround #1513
Diffstat:
M lib/wallet.py | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/lib/wallet.py b/lib/wallet.py
t@@ -1047,6 +1047,8 @@ class Abstract_Wallet(PrintError):
def send_tx(self, tx):
# asynchronous
self.tx_event.clear()
+ # fixme: this does not handle the case where server does not answer
+ assert self.network.interface, "Not connected."
self.network.send([('blockchain.transaction.broadcast', [str(tx)])], self.on_broadcast)
return tx.hash()