aboutsummaryrefslogtreecommitdiffstats
path: root/node
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-09 02:25:52 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-13 20:00:09 +0800
commit205ea9580215cca4093dff22ec61222bc3a6ff96 (patch)
treeaf6c38683d64bb47c0a31ba166533701cf95ed15 /node
parentc5215fdd48231622dd56aba63a5187c6e42828d4 (diff)
downloaddexon-205ea9580215cca4093dff22ec61222bc3a6ff96.tar
dexon-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.gz
dexon-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.bz2
dexon-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.lz
dexon-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.xz
dexon-205ea9580215cca4093dff22ec61222bc3a6ff96.tar.zst
dexon-205ea9580215cca4093dff22ec61222bc3a6ff96.zip
accounts, cmd, internal, node: implement HD wallet self-derivation
Diffstat (limited to 'node')
-rw-r--r--node/config.go19
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
}