Skip to content

Commit

Permalink
Merge #662: [0.17 backport] FundTransaction: mark all change keys as …
Browse files Browse the repository at this point in the history
…kept #660

e50cbd7 FundTransaction: mark all change keys as kept (Gregory Sanders)

Pull request description:

  Backport of #660.

Tree-SHA512: 0fdeddc109c8f1f69b5a45c8a23171cebb68db7f21f7125a7769d28a3a7ed090602b28a1ec51b9a89a96becad07051b89951db1fef91fddc53f1f648099196da
  • Loading branch information
instagibbs committed Jun 13, 2019
2 parents ba9b83c + e50cbd7 commit 8b93cee
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 @@ -2700,6 +2700,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 8b93cee

Please sign in to comment.