mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
FundTransaction: mark all change keys as kept
This commit is contained in:
parent
427903dd97
commit
dd757adfee
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue