wallet, qt: forgetting a key without watch-only also clears its label (#46) #48
No reviewers
Labels
No labels
do-not-open-till-X-Day
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SubGeniusFinance/dobbscoin-source!48
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/46-forget-clears-entry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Click-testing "Forget private key..." (#46) on Windows: the key was removed, but the address stayed in File → Receiving addresses with its label, so nothing looked different. After a restart it moved on, and trying to forget it again said the key wasn't in the wallet.
CWallet::RemovePrivKeynow deletes the address-book entry whenkeepwatchonlyis false, so the row disappears at once. A watched address keeps its entry.removeprivkeyhelp says the label goes too withoutkeepwatchonly.qa/rpc-tests/removeprivkey.pychecks the entry is gone, or kept withkeepwatchonly.Tested:
qa/run-all.sh27 passed, 0 failed (Linux). Windows build80414d38click-tested on regtest by btcbob: the address disappears from Receiving addresses right after forgetting it.🤖 Generated with Claude Code