aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorWenbiao Zheng <delweng@gmail.com>2018-07-24 08:09:24 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-07-24 08:09:24 +0800
commit894022a3d5b2aba7714eb8fad3fbba0e0b5b74ea (patch)
tree74e6155f7539171466f8c4e627eeee0b65c49fba /cmd
parent68da9aa71638b4ae7a91d61b815a00b4e9be09d4 (diff)
downloaddexon-894022a3d5b2aba7714eb8fad3fbba0e0b5b74ea.tar.gz
dexon-894022a3d5b2aba7714eb8fad3fbba0e0b5b74ea.tar.zst
dexon-894022a3d5b2aba7714eb8fad3fbba0e0b5b74ea.zip
cmd/geth: clean up call to SelfDerive (#16970)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index e42aab30a..1c618de35 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -305,11 +305,11 @@ func startNode(ctx *cli.Context, stack *node.Node) {
status, _ := event.Wallet.Status()
log.Info("New wallet appeared", "url", event.Wallet.URL(), "status", status)
+ derivationPath := accounts.DefaultBaseDerivationPath
if event.Wallet.URL().Scheme == "ledger" {
- event.Wallet.SelfDerive(accounts.DefaultLedgerBaseDerivationPath, stateReader)
- } else {
- event.Wallet.SelfDerive(accounts.DefaultBaseDerivationPath, stateReader)
+ derivationPath = accounts.DefaultLedgerBaseDerivationPath
}
+ event.Wallet.SelfDerive(derivationPath, stateReader)
case accounts.WalletDropped:
log.Info("Old wallet dropped", "url", event.Wallet.URL())