cmd/geth: clean up call to SelfDerive (#16970)

This commit is contained in:
Wenbiao Zheng 2018-07-24 08:09:24 +08:00 committed by Felix Lange
parent 68da9aa716
commit 894022a3d5
1 changed files with 3 additions and 3 deletions

View File

@ -305,11 +305,11 @@ func startNode(ctx *cli.Context, stack *node.Node) {
status, _ := event.Wallet.Status() status, _ := event.Wallet.Status()
log.Info("New wallet appeared", "url", event.Wallet.URL(), "status", status) log.Info("New wallet appeared", "url", event.Wallet.URL(), "status", status)
derivationPath := accounts.DefaultBaseDerivationPath
if event.Wallet.URL().Scheme == "ledger" { if event.Wallet.URL().Scheme == "ledger" {
event.Wallet.SelfDerive(accounts.DefaultLedgerBaseDerivationPath, stateReader) derivationPath = accounts.DefaultLedgerBaseDerivationPath
} else {
event.Wallet.SelfDerive(accounts.DefaultBaseDerivationPath, stateReader)
} }
event.Wallet.SelfDerive(derivationPath, stateReader)
case accounts.WalletDropped: case accounts.WalletDropped:
log.Info("Old wallet dropped", "url", event.Wallet.URL()) log.Info("Old wallet dropped", "url", event.Wallet.URL())