aboutsummaryrefslogtreecommitdiffstats
path: root/node
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-06-01 22:19:47 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-06-04 23:04:55 +0800
commit5d68400cad8cda3b265d2bc9d45223b303349023 (patch)
tree49a7b41a221cfb71739bb1587c69e66176e34b91 /node
parentb4cc7b660cfaee01da625ed5f09ce2b9d34933ba (diff)
downloadgo-tangerine-5d68400cad8cda3b265d2bc9d45223b303349023.tar
go-tangerine-5d68400cad8cda3b265d2bc9d45223b303349023.tar.gz
go-tangerine-5d68400cad8cda3b265d2bc9d45223b303349023.tar.bz2
go-tangerine-5d68400cad8cda3b265d2bc9d45223b303349023.tar.lz
go-tangerine-5d68400cad8cda3b265d2bc9d45223b303349023.tar.xz
go-tangerine-5d68400cad8cda3b265d2bc9d45223b303349023.tar.zst
go-tangerine-5d68400cad8cda3b265d2bc9d45223b303349023.zip
accounts/usbwallet, vendor: switch from HID to generic USB lib
Diffstat (limited to 'node')
-rw-r--r--node/config.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/node/config.go b/node/config.go
index c864fea9c..31d36f203 100644
--- a/node/config.go
+++ b/node/config.go
@@ -501,15 +501,15 @@ func makeAccountManager(conf *Config) (*accounts.Manager, string, error) {
} else {
backends = append(backends, ledgerhub)
}
- // Start a USB hub for Trezor hardware wallets
- if trezorhub, err := usbwallet.NewTrezorHub(); err != nil {
- log.Warn(fmt.Sprintf("Failed to start Trezor hub, disabling: %v", err))
+ // Start a USB hub for Trezor hardware wallets (HID version)
+ if trezorhub, err := usbwallet.NewTrezorHubWithHID(); err != nil {
+ log.Warn(fmt.Sprintf("Failed to start HID Trezor hub, disabling: %v", err))
} else {
backends = append(backends, trezorhub)
}
// Start a USB hub for Trezor hardware wallets (WebUSB version)
- if trezorhub, err := usbwallet.NewWebUSBTrezorHub(); err != nil {
- log.Warn(fmt.Sprintf("Failed to start Trezor hub, disabling: %v", err))
+ if trezorhub, err := usbwallet.NewTrezorHubWithWebUSB(); err != nil {
+ log.Warn(fmt.Sprintf("Failed to start WebUSB Trezor hub, disabling: %v", err))
} else {
backends = append(backends, trezorhub)
}