You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #18546: Bugfix: Wallet: Safely deal with change in the address book [part 2]
7a2ecf1 Wallet: Change IsMine check in CWallet::DelAddressBook from assert to failure (Luke Dashjr)
2952c46 Wallet: Replace CAddressBookData.name with GetLabel() method (Luke Dashjr)
d7092c3 QA: Test that change doesn't turn into non-change when spent in an avoid-reuse wallet (Luke Dashjr)
Pull request description:
Follow-up to #18192, not strictly necessary for 0.20
ACKs for top commit:
MarcoFalke:
re-ACK 7a2ecf1, only change is adding an assert_equal in the test 🔰
jnewbery:
utACK 7a2ecf1
Tree-SHA512: e0933ee40f705b751697dc27249e1868ed4874254b174ebdd0a7150125d8c818402e66df2371718c7eeb90e67ee2317215fb260aa9b9d7b9b45ee436de2988ff
// If we want to delete receiving addresses, we need to take care that DestData "used" (and possibly newer DestData) gets preserved (and the "deleted" address transformed into a change entry instead of actually being deleted)
3222
3222
// NOTE: This isn't a problem for sending addresses because they never have any DestData yet!
3223
3223
// When adding new DestData, it should be considered here whether to retain or delete it (or move it?).
3224
-
assert(!IsMine(address));
3224
+
if (IsMine(address)) {
3225
+
WalletLogPrintf("%s called with IsMine address, NOT SUPPORTED. Please report this bug! %s\n", __func__, PACKAGE_BUGREPORT);
3226
+
returnfalse;
3227
+
}
3225
3228
3226
3229
{
3227
3230
LOCK(cs_wallet);
@@ -3472,7 +3475,7 @@ std::set<CTxDestination> CWallet::GetLabelAddresses(const std::string& label) co
0 commit comments