commit 54df0b2845a37f419ea9e734b7d2fb4b1639ea99
parent 96f144eb03fa9aa7debe86158d51e639d8f13cd6
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 25 Feb 2016 08:59:02 +0100
follow up previous commit
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/network.py b/lib/network.py
@@ -835,10 +835,9 @@ class Network(util.DaemonThread):
def broadcast(self, tx, timeout=10):
tx_hash = tx.hash()
try:
- r = self.synchronous_get(('blockchain.transaction.broadcast', [str(tx)]), timeout)
+ out = self.synchronous_get(('blockchain.transaction.broadcast', [str(tx)]), timeout)
except BaseException as e:
return False, "error: " + str(e)
- result = r.get('result')
if out != tx_hash:
return False, "error: " + out
return True, out