diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-24 22:41:18 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-24 22:41:18 +0200 |
commit | 2e2ee3d823e180068428faac7a8474346b338972 (patch) | |
tree | 696c60ae52f801b29ba64f36071412b022fff024 | |
parent | Merge pull request #5483 (diff) | |
parent | wallet2: fix wrong change being recorded in sweep_all (diff) | |
download | monero-2e2ee3d823e180068428faac7a8474346b338972.tar.xz |
Merge pull request #5485
c519d1df wallet2: fix wrong change being recorded in sweep_all (moneromooo-monero)
-rw-r--r-- | src/wallet/wallet2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 77b895abf..3d5f1bd0f 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -9534,7 +9534,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_2(std::vector<cryp tx.ptx = test_ptx; tx.weight = get_transaction_weight(test_tx, txBlob.size()); tx.outs = outs; - tx.needed_fee = needed_fee; + tx.needed_fee = test_ptx.fee; accumulated_fee += test_ptx.fee; accumulated_change += test_ptx.change_dts.amount; adding_fee = false; @@ -9932,7 +9932,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_from(const crypton tx.ptx = test_ptx; tx.weight = get_transaction_weight(test_tx, txBlob.size()); tx.outs = outs; - tx.needed_fee = needed_fee; + tx.needed_fee = test_ptx.fee; accumulated_fee += test_ptx.fee; accumulated_change += test_ptx.change_dts.amount; if (!unused_transfers_indices.empty() || !unused_dust_indices.empty()) |