Skip to content

Commit

Permalink
Merge d54d02b into merged_master (Elements PR ElementsProject#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Oct 30, 2020
2 parents 191a173 + d54d02b commit 2da1de9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2804,6 +2804,11 @@ bool CWallet::FundTransaction(CMutableTransaction& tx, CAmount& nFeeRet, int& nC
}
}

// Mark all un-returned change keys as used to reduce privacy loss
for (auto& changekey : vChangeKey) {
changekey->KeepKey();
}

return true;
}

Expand Down

0 comments on commit 2da1de9

Please sign in to comment.