mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
wallet2: fix wrong change being recorded in sweep_all
leading to the sanity check triggering
This commit is contained in:
parent
475481949a
commit
c519d1df34
1 changed files with 2 additions and 2 deletions
|
@ -9534,7 +9534,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_2(std::vector<cryp
|
||||||
tx.ptx = test_ptx;
|
tx.ptx = test_ptx;
|
||||||
tx.weight = get_transaction_weight(test_tx, txBlob.size());
|
tx.weight = get_transaction_weight(test_tx, txBlob.size());
|
||||||
tx.outs = outs;
|
tx.outs = outs;
|
||||||
tx.needed_fee = needed_fee;
|
tx.needed_fee = test_ptx.fee;
|
||||||
accumulated_fee += test_ptx.fee;
|
accumulated_fee += test_ptx.fee;
|
||||||
accumulated_change += test_ptx.change_dts.amount;
|
accumulated_change += test_ptx.change_dts.amount;
|
||||||
adding_fee = false;
|
adding_fee = false;
|
||||||
|
@ -9932,7 +9932,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_from(const crypton
|
||||||
tx.ptx = test_ptx;
|
tx.ptx = test_ptx;
|
||||||
tx.weight = get_transaction_weight(test_tx, txBlob.size());
|
tx.weight = get_transaction_weight(test_tx, txBlob.size());
|
||||||
tx.outs = outs;
|
tx.outs = outs;
|
||||||
tx.needed_fee = needed_fee;
|
tx.needed_fee = test_ptx.fee;
|
||||||
accumulated_fee += test_ptx.fee;
|
accumulated_fee += test_ptx.fee;
|
||||||
accumulated_change += test_ptx.change_dts.amount;
|
accumulated_change += test_ptx.change_dts.amount;
|
||||||
if (!unused_transfers_indices.empty() || !unused_dust_indices.empty())
|
if (!unused_transfers_indices.empty() || !unused_dust_indices.empty())
|
||||||
|
|
Loading…
Reference in a new issue