Browse Source

add warning message to GUI

master
Adam Gibson 5 years ago
parent
commit
d26cea8dac
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 6
      jmclient/jmclient/taker.py

6
jmclient/jmclient/taker.py

@ -796,9 +796,11 @@ class Taker(object):
self.wallet_service.register_callbacks([self.unconfirm_callback],
txid, "unconfirmed")
if jm_single().config.get('POLICY', 'tx_broadcast') == "not-self":
warnmsg = ("You have chosen not to broadcast from your own "
"node. The transaction is NOT broadcast.")
self.taker_info_callback("ABORT", warnmsg + "\nSee log for details.")
# warning is arguably not correct but it will stand out more:
jlog.warn("You have chosen not to broadcast from your own "
"node. The transaction is NOT broadcast:")
jlog.warn(warnmsg)
jlog.info(btc.human_readable_transaction(tx))
return
if not self.push_ourselves():

Loading…
Cancel
Save