aboutsummaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-06-28 16:55:59 -0400
committerDeterminant <[email protected]>2020-06-28 16:55:59 -0400
commit90fae71b0ab27aacdc2f9454820d487a9b2a529a (patch)
tree8b19f7d114119644f4faf35ec46dd25ff00a7d31 /node
parentd235e2c6a5788ec4a6cff15a16f56b38a3876a0d (diff)
...
Diffstat (limited to 'node')
-rw-r--r--node/config.go42
1 files changed, 21 insertions, 21 deletions
diff --git a/node/config.go b/node/config.go
index fc036c1..b8ada53 100644
--- a/node/config.go
+++ b/node/config.go
@@ -30,7 +30,7 @@ import (
"github.com/ava-labs/coreth/accounts/external"
"github.com/ava-labs/coreth/accounts/keystore"
"github.com/ava-labs/coreth/accounts/scwallet"
- "github.com/ava-labs/coreth/accounts/usbwallet"
+ //"github.com/ava-labs/coreth/accounts/usbwallet"
"github.com/ava-labs/coreth/rpc"
"github.com/ava-labs/go-ethereum/common"
"github.com/ava-labs/go-ethereum/crypto"
@@ -494,26 +494,26 @@ func makeAccountManager(conf *Config) (*accounts.Manager, string, error) {
// we can have both, but it's very confusing for the user to see the same
// accounts in both externally and locally, plus very racey.
backends = append(backends, keystore.NewKeyStore(keydir, scryptN, scryptP))
- if !conf.NoUSB {
- // Start a USB hub for Ledger hardware wallets
- if ledgerhub, err := usbwallet.NewLedgerHub(); err != nil {
- log.Warn(fmt.Sprintf("Failed to start Ledger hub, disabling: %v", err))
- } else {
- backends = append(backends, ledgerhub)
- }
- // 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.NewTrezorHubWithWebUSB(); err != nil {
- log.Warn(fmt.Sprintf("Failed to start WebUSB Trezor hub, disabling: %v", err))
- } else {
- backends = append(backends, trezorhub)
- }
- }
+ //if !conf.NoUSB {
+ // // Start a USB hub for Ledger hardware wallets
+ // if ledgerhub, err := usbwallet.NewLedgerHub(); err != nil {
+ // log.Warn(fmt.Sprintf("Failed to start Ledger hub, disabling: %v", err))
+ // } else {
+ // backends = append(backends, ledgerhub)
+ // }
+ // // 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.NewTrezorHubWithWebUSB(); err != nil {
+ // log.Warn(fmt.Sprintf("Failed to start WebUSB Trezor hub, disabling: %v", err))
+ // } else {
+ // backends = append(backends, trezorhub)
+ // }
+ //}
if len(conf.SmartCardDaemonPath) > 0 {
// Start a smart card hub
if schub, err := scwallet.NewHub(conf.SmartCardDaemonPath, scwallet.Scheme, keydir); err != nil {