fix: fix returning correctly when the password is incorrect (#3738)

This commit is contained in:
Jonathan Rainville 2023-07-11 15:36:51 -04:00 committed by GitHub
parent 5fd9c5de66
commit 2a935100a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -721,13 +721,12 @@ func (b *GethStatusBackend) StartNodeWithAccount(acc multiaccounts.Account, pass
if err != nil {
// Stop node for clean up
_ = b.StopNode()
return err
}
// get logged in
if !b.localPairing {
return b.LoggedIn(acc.KeyUID, err)
}
return nil
return err
}
func (b *GethStatusBackend) LoggedIn(keyUID string, err error) error {