status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
299 stars 79 forks source link

no key for given address or file when removing account added from private key #16764

Open anastasiyaig opened 3 hours ago

anastasiyaig commented 3 hours ago

Bug Report

Description

After adding new keypair via Private key I am unable to remove this key pair and corresponding derived account. The error says no key for given address or file

I was not able to reproduce this bug once again on another account. Maybe you have faced something similar before.

My steps were:

Added a new keypair via Private Key and created derived account based on this keypair Synced Desktop with mobile device (not sure if this step is essential) Tried to Remove created account

Actual result: cannot remove the account. Key pair is not listed within the list of existing key pairs but at the same time when I try to add the same keypair again, it says that keypair already exists.

Logs https://drive.google.com/file/d/1gJxyKGDIaqN3QI69lac0CMWOCYVbOc01/view?usp=drive_link

Video https://drive.google.com/file/d/178DHZ4DQHE94SntCOI97k4s4yVh6l8mG/view?usp=drive_link

anastasiyaig commented 3 hours ago

The issue was encountered by @pavloburykh today. I was not able to reproduce it, neither the autotest we have (that checks adding account from private key , editing it and removing is checked on daily basis).

It has to be some race condition somewhere, either syncing or the account was migrated several times and that causes the problem, I can't say for now.