forked from lthn/blockchain
wallet2: minor improvement for wallet2::finalize_transaction()
This commit is contained in:
parent
4f33eb4078
commit
e7ac63adb3
1 changed files with 2 additions and 2 deletions
|
|
@ -7648,8 +7648,8 @@ void wallet2::finalize_transaction(currency::finalize_tx_param& ftp, currency::f
|
|||
ftp, result);
|
||||
//TIME_MEASURE_FINISH_MS(construct_tx_time);
|
||||
THROW_IF_FALSE_WALLET_EX(r, error::tx_not_constructed, ftp.sources, ftp.prepared_destinations, ftp.unlock_time);
|
||||
uint64_t effective_fee = get_tx_fee(result.tx);
|
||||
THROW_IF_FALSE_WALLET_CMN_ERR_EX(effective_fee <= WALLET_TX_MAX_ALLOWED_FEE, "tx fee is WAY too big: " << print_money_brief(effective_fee) << ", max allowed is " << print_money_brief(WALLET_TX_MAX_ALLOWED_FEE));
|
||||
uint64_t effective_fee = 0;
|
||||
THROW_IF_FALSE_WALLET_CMN_ERR_EX(get_tx_fee(result.tx, effective_fee) && effective_fee <= WALLET_TX_MAX_ALLOWED_FEE, "tx fee is WAY too big: " << print_money_brief(effective_fee) << ", max allowed is " << print_money_brief(WALLET_TX_MAX_ALLOWED_FEE));
|
||||
|
||||
//TIME_MEASURE_START_MS(sign_ms_input_time);
|
||||
if (ftp.multisig_id != currency::null_hash)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue