Commit graph

1 commit

Author SHA1 Message Date
Weixie Cui
7fbadaa8f5 accounts: fix missing wallet drop
The drop helper uses sort.Search on the sorted wallet list, but the returned index can point at the next greater wallet when the target URL is missing. Check that the located wallet URL matches before removing it so a missing drop event does not delete an unrelated wallet.

Add a regression test for dropping a URL that sorts between two existing wallets.
2026-06-10 19:07:56 +08:00