change to int config

This commit is contained in:
Long Vu 2025-08-01 15:34:58 +07:00 committed by zsfelfoldi
parent aa3377ac4e
commit 75dd37215b

View file

@ -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