Skip to content

Commit

Permalink
FundTransaction: mark all change keys as kept
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs authored and stevenroose committed Jun 12, 2019
1 parent ba9b83c commit e50cbd7
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 e50cbd7

Please sign in to comment.