|
|
@ -82,6 +82,9 @@ type Config struct { |
|
|
|
// scrypt KDF at the expense of security.
|
|
|
|
// scrypt KDF at the expense of security.
|
|
|
|
UseLightweightKDF bool `toml:",omitempty"` |
|
|
|
UseLightweightKDF bool `toml:",omitempty"` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// NoUSB disables hardware wallet monitoring and connectivity.
|
|
|
|
|
|
|
|
NoUSB bool `toml:",omitempty"` |
|
|
|
|
|
|
|
|
|
|
|
// IPCPath is the requested location to place the IPC endpoint. If the path is
|
|
|
|
// IPCPath is the requested location to place the IPC endpoint. If the path is
|
|
|
|
// a simple file name, it is placed inside the data directory (or on the root
|
|
|
|
// a simple file name, it is placed inside the data directory (or on the root
|
|
|
|
// pipe path on Windows), whereas if it's a resolvable path name (absolute or
|
|
|
|
// pipe path on Windows), whereas if it's a resolvable path name (absolute or
|
|
|
@ -389,10 +392,12 @@ func makeAccountManager(conf *Config) (*accounts.Manager, string, error) { |
|
|
|
backends := []accounts.Backend{ |
|
|
|
backends := []accounts.Backend{ |
|
|
|
keystore.NewKeyStore(keydir, scryptN, scryptP), |
|
|
|
keystore.NewKeyStore(keydir, scryptN, scryptP), |
|
|
|
} |
|
|
|
} |
|
|
|
if ledgerhub, err := usbwallet.NewLedgerHub(); err != nil { |
|
|
|
if !conf.NoUSB { |
|
|
|
log.Warn(fmt.Sprintf("Failed to start Ledger hub, disabling: %v", err)) |
|
|
|
if ledgerhub, err := usbwallet.NewLedgerHub(); err != nil { |
|
|
|
} else { |
|
|
|
log.Warn(fmt.Sprintf("Failed to start Ledger hub, disabling: %v", err)) |
|
|
|
backends = append(backends, ledgerhub) |
|
|
|
} else { |
|
|
|
|
|
|
|
backends = append(backends, ledgerhub) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return accounts.NewManager(backends...), ephemeral, nil |
|
|
|
return accounts.NewManager(backends...), ephemeral, nil |
|
|
|
} |
|
|
|
} |
|
|
|