FundTransaction: mark all change keys as kept

This commit is contained in:
Gregory Sanders 2019-06-12 10:24:01 -04:00 committed by Steven Roose
parent ba9b83c211
commit e50cbd7afc
No known key found for this signature in database
GPG key ID: 2F2A88D7F8D68E87

View file

@ -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; return true;
} }