diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-08-09 17:51:16 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-09 18:26:07 +0800 |
commit | 5d9ac49c7e6027c60998a56287dbb3e407011c9b (patch) | |
tree | 325712b0955076ba81a91031e84f25dee88727b2 /cmd/geth | |
parent | db568a61e2a98880ab308bf2224aa34073dc7f39 (diff) | |
download | dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.gz dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.bz2 dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.lz dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.xz dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.zst dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.zip |
accounts: refactor API for generalized USB wallets
Diffstat (limited to 'cmd/geth')
-rw-r--r-- | cmd/geth/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 257cb2231..34d1d8406 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -251,7 +251,9 @@ func startNode(ctx *cli.Context, stack *node.Node) { log.Warn("New wallet appeared, failed to open", "url", event.Wallet.URL(), "err", err) } case accounts.WalletOpened: - log.Info("New wallet appeared", "url", event.Wallet.URL(), "status", event.Wallet.Status()) + status, _ := event.Wallet.Status() + log.Info("New wallet appeared", "url", event.Wallet.URL(), "status", status) + if event.Wallet.URL().Scheme == "ledger" { event.Wallet.SelfDerive(accounts.DefaultLedgerBaseDerivationPath, stateReader) } else { |