From 54df0b2845a37f419ea9e734b7d2fb4b1639ea99 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 25 Feb 2016 08:59:02 +0100 Subject: [PATCH] follow up previous commit --- lib/network.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/network.py b/lib/network.py index b5b9eca01..2d554d61d 100644 --- 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