mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
change to int config
This commit is contained in:
parent
aa3377ac4e
commit
75dd37215b
1 changed files with 1 additions and 1 deletions
|
|
@ -1696,7 +1696,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
||||||
cfg.FilterLogCacheSize = ctx.Int(CacheLogSizeFlag.Name)
|
cfg.FilterLogCacheSize = ctx.Int(CacheLogSizeFlag.Name)
|
||||||
}
|
}
|
||||||
if ctx.IsSet(EthGetLogMaxAddressFlag.Name) {
|
if ctx.IsSet(EthGetLogMaxAddressFlag.Name) {
|
||||||
cfg.FilterMaxAddresses = int(ctx.Uint64(EthGetLogMaxAddressFlag.Name))
|
cfg.FilterMaxAddresses = ctx.Int(EthGetLogMaxAddressFlag.Name)
|
||||||
}
|
}
|
||||||
if !ctx.Bool(SnapshotFlag.Name) || cfg.SnapshotCache == 0 {
|
if !ctx.Bool(SnapshotFlag.Name) || cfg.SnapshotCache == 0 {
|
||||||
// If snap-sync is requested, this flag is also required
|
// If snap-sync is requested, this flag is also required
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue