diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-09 02:25:52 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-13 20:00:09 +0800 |
commit | 205ea9580215cca4093dff22ec61222bc3a6ff96 (patch) | |
tree | af6c38683d64bb47c0a31ba166533701cf95ed15 /node | |
parent | c5215fdd48231622dd56aba63a5187c6e42828d4 (diff) | |
download | go-tangerine-205ea9580215cca4093dff22ec61222bc3a6ff96.tar go-tangerine-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.gz go-tangerine-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.bz2 go-tangerine-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.lz go-tangerine-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.xz go-tangerine-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.zst go-tangerine-205ea9580215cca4093dff22ec61222bc3a6ff96.zip |
accounts, cmd, internal, node: implement HD wallet self-derivation
Diffstat (limited to 'node')
-rw-r--r-- | node/config.go | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/node/config.go b/node/config.go index 47ecd22a3..c09f51747 100644 --- a/node/config.go +++ b/node/config.go @@ -446,22 +446,5 @@ func makeAccountManager(conf *Config) (*accounts.Manager, string, error) { } else { backends = append(backends, ledgerhub) } - am := accounts.NewManager(backends...) - - // Start some logging for the user - changes := make(chan accounts.WalletEvent, 16) - am.Subscribe(changes) - go func() { - for event := range changes { - if event.Arrive { - glog.V(logger.Info).Infof("New wallet appeared: %s", event.Wallet.URL()) - if err := event.Wallet.Open(""); err != nil { - glog.V(logger.Warn).Infof("Failed to open wallet %s: %v", event.Wallet.URL(), err) - } - } else { - glog.V(logger.Info).Infof("Old wallet disappeared: %s", event.Wallet.URL()) - } - } - }() - return am, ephemeral, nil + return accounts.NewManager(backends...), ephemeral, nil } |