fix
authorThomasV <thomasv@gitorious>
Fri, 13 Sep 2013 04:43:22 +0000 (06:43 +0200)
committerThomasV <thomasv@gitorious>
Fri, 13 Sep 2013 04:43:22 +0000 (06:43 +0200)
lib/wallet.py

index 60d38f8..d1c6484 100644 (file)
@@ -1190,8 +1190,8 @@ class Wallet:
         self.network.interface.send([('blockchain.transaction.broadcast', [str(tx)])], self.on_broadcast)
         return tx.hash()
 
-    def on_broadcast(self, i, result):
-        self.tx_result = result
+    def on_broadcast(self, i, r):
+        self.tx_result = r.get('result')
         self.tx_event.set()
 
     def receive_tx(self,tx_hash):