increased default to 5000 (#5209)

* increased default to 5000

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

* changelog

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

* updated test

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/5226/head
Sally MacFarlane 2 years ago committed by GitHub
parent b2dccc89e2
commit d500a77335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java
  3. 2
      besu/src/test/java/org/hyperledger/besu/cli/BesuCommandTest.java

@ -5,6 +5,7 @@
### Breaking Changes
### Additions and Improvements
- Increase default from 1000 to 5000 for `--rpc-max-logs-range` #5209
### Bug Fixes

@ -1312,7 +1312,7 @@ public class BesuCommand implements DefaultCommandValues, Runnable {
names = {"--rpc-max-logs-range"},
description =
"Specifies the maximum number of blocks to retrieve logs from via RPC. Must be >=0. 0 specifies no limit (default: ${DEFAULT-VALUE})")
private final Long rpcMaxLogsRange = 1000L;
private final Long rpcMaxLogsRange = 5000L;
@Mixin private P2PTLSConfigOptions p2pTLSConfigOptions;

@ -257,7 +257,7 @@ public class BesuCommandTest extends CommandTestAbstract {
verify(mockRunnerBuilder).metricsConfiguration(eq(DEFAULT_METRICS_CONFIGURATION));
verify(mockRunnerBuilder).ethNetworkConfig(ethNetworkArg.capture());
verify(mockRunnerBuilder).autoLogBloomCaching(eq(true));
verify(mockRunnerBuilder).rpcMaxLogsRange(eq(1000L));
verify(mockRunnerBuilder).rpcMaxLogsRange(eq(5000L));
verify(mockRunnerBuilder).build();
verify(mockControllerBuilderFactory)

Loading…
Cancel
Save