fix: send_tx

This commit is contained in:
thomasv 2013-02-25 18:15:14 +01:00
parent 8225028dd1
commit 41a2fa427f
1 changed files with 2 additions and 3 deletions

View File

@ -706,9 +706,8 @@ class Wallet:
def send_tx(self, tx): def send_tx(self, tx):
# asynchronous # asynchronous
self.tx_event.clear() self.tx_event.clear()
tx_hash = Hash(tx.decode('hex') )[::-1].encode('hex') self.interface.send([('blockchain.transaction.broadcast', [str(tx)])], 'synchronizer')
self.interface.send([('blockchain.transaction.broadcast', [tx])], 'synchronizer') return tx.hash()
return tx_hash
def receive_tx(self,tx_hash): def receive_tx(self,tx_hash):
out = self.tx_result out = self.tx_result