You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd/geth: make account commands not require datadir lock (ethereum#27084)
Makes the `geth account ... ` commands usable even if a geth-process is already executing, since the account commands do not read the chaindata, it was not required for those to use the same locking mechanism.
---
Signed-off-by: jsvisa <[email protected]>
Co-authored-by: Martin Holst Swende <[email protected]>
Co-authored-by: Sina Mahmoodi <[email protected]>
utils.Fatalf("Failed to load the private key: %v", err)
354
369
}
355
-
stack, _:=makeConfigNode(ctx)
356
-
passphrase:=utils.GetPassPhraseWithList("Your new account is locked with a password. Please give a password. Do not forget this password.", true, 0, utils.MakePasswordList(ctx))
passphrase:=utils.GetPassPhraseWithList("Your new account is locked with a password. Please give a password. Do not forget this password.", true, 0, utils.MakePasswordList(ctx))
377
+
363
378
acct, err:=ks.ImportECDSA(key, passphrase)
364
379
iferr!=nil {
365
380
utils.Fatalf("Could not create the account: %v", err)
0 commit comments