mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
follow up previous commit
This commit is contained in:
parent
96f144eb03
commit
54df0b2845
1 changed files with 1 additions and 2 deletions
|
@ -835,10 +835,9 @@ class Network(util.DaemonThread):
|
||||||
def broadcast(self, tx, timeout=10):
|
def broadcast(self, tx, timeout=10):
|
||||||
tx_hash = tx.hash()
|
tx_hash = tx.hash()
|
||||||
try:
|
try:
|
||||||
r = self.synchronous_get(('blockchain.transaction.broadcast', [str(tx)]), timeout)
|
out = self.synchronous_get(('blockchain.transaction.broadcast', [str(tx)]), timeout)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
return False, "error: " + str(e)
|
return False, "error: " + str(e)
|
||||||
result = r.get('result')
|
|
||||||
if out != tx_hash:
|
if out != tx_hash:
|
||||||
return False, "error: " + out
|
return False, "error: " + out
|
||||||
return True, out
|
return True, out
|
||||||
|
|
Loading…
Add table
Reference in a new issue