mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
clarify description and test comment
This commit is contained in:
parent
0febd559a5
commit
10cb63fc84
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue