clarify description and test comment

This commit is contained in:
Mael Regnery 2025-12-19 09:47:00 +01:00 committed by MariusVanDerWijden
parent 0febd559a5
commit 10cb63fc84
2 changed files with 2 additions and 2 deletions

View file

@ -644,7 +644,7 @@ var (
}
RPCGlobalRangeLimitFlag = &cli.Uint64Flag{
Name: "rpc.rangelimit",
Usage: "Maximum block range allowed for range queries (0 = unlimited)",
Usage: "Maximum block range (end - begin) allowed for range queries (0 = unlimited)",
Value: ethconfig.Defaults.RangeLimit,
Category: flags.APICategory,
}

View file

@ -630,7 +630,7 @@ func TestRangeLimit(t *testing.T) {
backend.startFilterMaps(0, false, filtermaps.DefaultParams)
defer backend.stopFilterMaps()
// Set rangeLimit to 5, but request 10 blocks
// Set rangeLimit to 5, but request a range of 9 (end - begin = 9, from 0 to 9)
filter := sys.NewRangeFilter(0, 9, nil, nil, 5)
_, err = filter.Logs(context.Background())
if err == nil || !strings.Contains(err.Error(), "exceed maximum block range") {