From 96afc3bdec1da5096d973d479498e04959b6adef Mon Sep 17 00:00:00 2001 From: Adam Gibson Date: Sat, 19 Aug 2017 15:26:59 +0300 Subject: [PATCH] human readable direct-send info --- jmclient/jmclient/taker_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jmclient/jmclient/taker_utils.py b/jmclient/jmclient/taker_utils.py index f9e07cc..9bb880a 100644 --- a/jmclient/jmclient/taker_utils.py +++ b/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: