Browse Source

human readable direct-send info

master
Adam Gibson 8 years ago
parent
commit
96afc3bdec
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  1. 3
      jmclient/jmclient/taker_utils.py

3
jmclient/jmclient/taker_utils.py

@ -85,13 +85,14 @@ def direct_send(wallet, amount, mixdepth, destaddr, answeryes=False,
log.info("Got signed transaction:\n")
log.info(tx + "\n")
log.info(pformat(txsigned))
actual_amount = amount if amount != 0 else total_inputs_val - fee_est
log.info("Sends: " + str(actual_amount) + " satoshis to address: " + destaddr)
if not answeryes:
if not accept_callback:
if raw_input('Would you like to push to the network? (y/n):')[0] != 'y':
log.info("You chose not to broadcast the transaction, quitting.")
return False
else:
actual_amount = amount if amount != 0 else total_inputs_val - fee_est
accepted = accept_callback(pformat(txsigned), destaddr, actual_amount,
fee_est)
if not accepted:

Loading…
Cancel
Save