mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
cmd/utils: validates trimmed string but parses the untrimmed one (#35116)
This commit is contained in:
parent
31d227ea83
commit
e774a8fca0
1 changed files with 1 additions and 1 deletions
|
|
@ -1617,7 +1617,7 @@ func setTxPool(ctx *cli.Context, cfg *legacypool.Config) {
|
|||
if trimmed := strings.TrimSpace(account); !common.IsHexAddress(trimmed) {
|
||||
Fatalf("Invalid account in --txpool.locals: %s", trimmed)
|
||||
} else {
|
||||
cfg.Locals = append(cfg.Locals, common.HexToAddress(account))
|
||||
cfg.Locals = append(cfg.Locals, common.HexToAddress(trimmed))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue