git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4b4f24c
)
added broadcast_transaction hook into libbitcoin
author
genjix
<fake@lol.u>
Sun, 25 Mar 2012 18:23:35 +0000 (19:23 +0100)
committer
genjix
<fake@lol.u>
Sun, 25 Mar 2012 18:23:35 +0000 (19:23 +0100)
modules/python_bitcoin/__init__.py
patch
|
blob
|
history
diff --git
a/modules/python_bitcoin/__init__.py
b/modules/python_bitcoin/__init__.py
index
259b7f1
..
23e449f
100644
(file)
--- a/
modules/python_bitcoin/__init__.py
+++ b/
modules/python_bitcoin/__init__.py
@@
-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)