1
0

gui: prepend broadcast_transaction errors with explanatory message

This commit is contained in:
SomberNight
2018-12-21 20:44:38 +01:00
parent b491a30dd9
commit 5248613e9d
5 changed files with 17 additions and 6 deletions

View File

@@ -737,6 +737,7 @@ class Network(PrintError):
timeout = self.get_network_timeout_seconds(NetworkTimeout.Urgent)
out = await self.interface.session.send_request('blockchain.transaction.broadcast', [str(tx)], timeout=timeout)
if out != tx.txid():
# note: this is untrusted input from the server
raise Exception(out)
return out # txid