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