FundTransaction: mark all change keys as kept

This commit is contained in:
Gregory Sanders 2019-06-12 10:24:01 -04:00
parent 427903dd97
commit dd757adfee

View file

@ -2711,6 +2711,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;
}