Skip to content

Commit 46168f6

Browse files
garyschultejframe
authored andcommitted
re-default global max rpc batch size to 1k (hyperledger#5104) (hyperledger#5105)
* default global max rpc batch size to 1000 for now Signed-off-by: garyschulte <[email protected]>
1 parent 7cf035a commit 46168f6

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## 23.1.0-RC2
44

55
### Breaking Changes
6-
- Add a new CLI option to limit the number of requests in a single RPC batch request. Default=1 [#4965](https://github.com/hyperledger/besu/pull/4965)
76
- Change JsonRpc http service to return the error -32602 (Invalid params) with a 200 http status code
87
- Besu requires minimum Java 17 and up to build and run [#3320](https://github.com/hyperledger/besu/issues/3320)
98
- PKCS11 with nss module (PKCS11 based HSM can be used in DevP2P TLS and QBFT PKI) does not work with RSA keys
@@ -12,6 +11,8 @@ tests are updated to use EC private keys instead of RSA keys.
1211
- Change eth_feeHistory parameter `blockCount` to accept hexadecimal string (was accepting plain integer) [#5047](https://github.com/hyperledger/besu/pull/5047)
1312

1413
### Additions and Improvements
14+
- Default rpc batch request to 1000 [#5104](https://github.com/hyperledger/besu/pull/5104)
15+
- Add a new CLI option to limit the number of requests in a single RPC batch request. [#4965](https://github.com/hyperledger/besu/pull/4965)
1516
- Support for new DATAHASH opcode as part of EIP-4844 [#4823](https://github.com/hyperledger/besu/issues/4823)
1617
- Send only hash announcement for blob transaction type [#4940](https://github.com/hyperledger/besu/pull/4940)
1718
- Add `excess_data_gas` field to block header [#4958](https://github.com/hyperledger/besu/pull/4958)

besu/src/main/java/org/hyperledger/besu/cli/DefaultCommandValues.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public interface DefaultCommandValues {
8787
/** The constant DEFAULT_HTTP_MAX_CONNECTIONS. */
8888
int DEFAULT_HTTP_MAX_CONNECTIONS = 80;
8989
/** The constant DEFAULT_HTTP_MAX_BATCH_SIZE. */
90-
int DEFAULT_HTTP_MAX_BATCH_SIZE = 1;
90+
int DEFAULT_HTTP_MAX_BATCH_SIZE = 1000;
9191
/** The constant DEFAULT_WS_MAX_CONNECTIONS. */
9292
int DEFAULT_WS_MAX_CONNECTIONS = 80;
9393
/** The constant DEFAULT_WS_MAX_FRAME_SIZE. */

ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcConfiguration.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class JsonRpcConfiguration {
3636
public static final int DEFAULT_JSON_RPC_PORT = 8545;
3737
public static final int DEFAULT_ENGINE_JSON_RPC_PORT = 8551;
3838
public static final int DEFAULT_MAX_ACTIVE_CONNECTIONS = 80;
39-
public static final int DEFAULT_MAX_BATCH_SIZE = 1;
39+
public static final int DEFAULT_MAX_BATCH_SIZE = 1000;
4040

4141
private boolean enabled;
4242
private int port;
@@ -208,6 +208,7 @@ public String toString() {
208208
.add("tlsConfiguration", tlsConfiguration)
209209
.add("httpTimeoutSec", httpTimeoutSec)
210210
.add("maxActiveConnections", maxActiveConnections)
211+
.add("maxBatchSize", maxBatchSize)
211212
.toString();
212213
}
213214

@@ -228,7 +229,8 @@ public boolean equals(final Object o) {
228229
&& Objects.equals(rpcApis, that.rpcApis)
229230
&& Objects.equals(hostsAllowlist, that.hostsAllowlist)
230231
&& Objects.equals(authenticationCredentialsFile, that.authenticationCredentialsFile)
231-
&& Objects.equals(authenticationPublicKeyFile, that.authenticationPublicKeyFile);
232+
&& Objects.equals(authenticationPublicKeyFile, that.authenticationPublicKeyFile)
233+
&& maxBatchSize == that.maxBatchSize;
232234
}
233235

234236
@Override
@@ -242,7 +244,8 @@ public int hashCode() {
242244
hostsAllowlist,
243245
authenticationEnabled,
244246
authenticationCredentialsFile,
245-
authenticationPublicKeyFile);
247+
authenticationPublicKeyFile,
248+
maxBatchSize);
246249
}
247250

248251
public int getMaxActiveConnections() {

0 commit comments

Comments
 (0)