diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-03-17 17:55:12 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-03-17 17:55:13 +0200 |
commit | e1be617ea2022459c6df9dc4d8b331cc249cae0a (patch) | |
tree | 0bcd62d1972fa9cda1379807eb507c1a74b619c3 /src/wallet/wallet2.cpp | |
parent | Merge pull request #5181 (diff) | |
parent | Better error when sending a tx with a too large extra field (diff) | |
download | monero-e1be617ea2022459c6df9dc4d8b331cc249cae0a.tar.xz |
Merge pull request #5182
b674728d Better error when sending a tx with a too large extra field (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r-- | src/wallet/wallet2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 6a0a30db6..8bb886c6d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -9148,6 +9148,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_2(std::vector<cryp { const size_t estimated_rct_tx_weight = estimate_tx_weight(use_rct, tx.selected_transfers.size(), fake_outs_count, tx.dsts.size()+1, extra.size(), bulletproof); try_tx = dsts.empty() || (estimated_rct_tx_weight >= TX_WEIGHT_TARGET(upper_transaction_weight_limit)); + THROW_WALLET_EXCEPTION_IF(try_tx && tx.dsts.empty(), error::tx_too_big, estimated_rct_tx_weight, upper_transaction_weight_limit); } } |