node: do not continue if 'signer' is used but connection fails (#19441)

This makes geth fails instead of falling back to local keystore, if the command line flag `--signer` is used
This commit is contained in:
Martin Holst Swende 2019-04-12 10:18:03 +02:00 committed by GitHub
parent d5af3a584c
commit 1528b791ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -482,7 +482,7 @@ func makeAccountManager(conf *Config) (*accounts.Manager, string, error) {
if extapi, err := external.NewExternalBackend(conf.ExternalSigner); err == nil {
backends = append(backends, extapi)
} else {
log.Info("Error configuring external signer", "error", err)
return nil, "", fmt.Errorf("error connecting to external signer: %v", err)
}
}
if len(backends) == 0 {