Skip to content

Commit 5c61681

Browse files
committed
Merge d54d02b into merged_master (Elements PR ElementsProject#660)
2 parents ff51348 + d54d02b commit 5c61681

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,6 +2804,11 @@ bool CWallet::FundTransaction(CMutableTransaction& tx, CAmount& nFeeRet, int& nC
28042804
}
28052805
}
28062806

2807+
// Mark all un-returned change keys as used to reduce privacy loss
2808+
for (auto& changekey : vChangeKey) {
2809+
changekey->KeepKey();
2810+
}
2811+
28072812
return true;
28082813
}
28092814

0 commit comments

Comments
 (0)