mirror of
https://github.com/status-im/status-go.git
synced 2025-02-05 19:34:00 +00:00
dfe40ff6bd
We delegate to services to init the keystore file, but there's a race condition that can be triggered, whereby the keystore file is not initialized before login, and that results in the user not being able to login. This commit changes the services so that the keystore is initialized before login, I have left also the code in services just to make sure nothing relies on it, but it could probably be removed. Initializing keystore twice seems like a noop if already initialized.