added broadcast_transaction hook into libbitcoin
authorgenjix <fake@lol.u>
Sun, 25 Mar 2012 18:23:35 +0000 (19:23 +0100)
committergenjix <fake@lol.u>
Sun, 25 Mar 2012 18:23:35 +0000 (19:23 +0100)
modules/python_bitcoin/__init__.py

index 259b7f1..23e449f 100644 (file)
@@ -180,8 +180,7 @@ class LibbitcoinProcessor(stratum.Processor):
                     "Exception while parsing the transaction data.",
                     "code": -4}}
         else:
-            # TODO: actually broadcast - bindings need to be made for that
-            # method
+            self.backend.protocol.broadcast_transaction(tx)
             tx_hash = str(bitcoin.hash_transaction(tx))
             response = {"id": request["id"], "result": tx_hash}
         session.push_response(response)