diff --git a/lib/commands.py b/lib/commands.py index ae3b80ada..0ba76f990 100644 --- 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)