mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-19 05:45:05 +01:00
Wallet: Change IsMine check in CWallet::DelAddressBook from assert to failure
This commit is contained in:
parent
2952c46b92
commit
7a2ecf16df
@ -3221,7 +3221,10 @@ bool CWallet::DelAddressBook(const CTxDestination& address)
|
||||
// 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)
|
||||
// NOTE: This isn't a problem for sending addresses because they never have any DestData yet!
|
||||
// When adding new DestData, it should be considered here whether to retain or delete it (or move it?).
|
||||
assert(!IsMine(address));
|
||||
if (IsMine(address)) {
|
||||
WalletLogPrintf("%s called with IsMine address, NOT SUPPORTED. Please report this bug! %s\n", __func__, PACKAGE_BUGREPORT);
|
||||
return false;
|
||||
}
|
||||
|
||||
{
|
||||
LOCK(cs_wallet);
|
||||
|
Loading…
Reference in New Issue
Block a user