commit 5f8775cd3aa2d66399899e565d6f073d4a7162ba
parent e18573dda0b44d6b210610672840041df9fc59d1
Author: ThomasV <thomasv@gitorious>
Date: Sat, 21 Dec 2013 18:29:09 +0100
fix sendrawtransaction
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/commands.py b/lib/commands.py
@@ -149,8 +149,7 @@ class Commands:
def sendrawtransaction(self, raw):
tx = Transaction(raw)
- r, h = self.wallet.sendtx( tx )
- return h
+ return self.network.synchronous_get([('blockchain.transaction.broadcast', [str(tx)])])[0]
def createmultisig(self, num, pubkeys):
assert isinstance(pubkeys, list)