|
|
|
@ -36,7 +36,7 @@ public class JsonRpcConfiguration { |
|
|
|
|
public static final int DEFAULT_JSON_RPC_PORT = 8545; |
|
|
|
|
public static final int DEFAULT_ENGINE_JSON_RPC_PORT = 8551; |
|
|
|
|
public static final int DEFAULT_MAX_ACTIVE_CONNECTIONS = 80; |
|
|
|
|
public static final int DEFAULT_MAX_BATCH_SIZE = 1; |
|
|
|
|
public static final int DEFAULT_MAX_BATCH_SIZE = 1000; |
|
|
|
|
|
|
|
|
|
private boolean enabled; |
|
|
|
|
private int port; |
|
|
|
@ -208,6 +208,7 @@ public class JsonRpcConfiguration { |
|
|
|
|
.add("tlsConfiguration", tlsConfiguration) |
|
|
|
|
.add("httpTimeoutSec", httpTimeoutSec) |
|
|
|
|
.add("maxActiveConnections", maxActiveConnections) |
|
|
|
|
.add("maxBatchSize", maxBatchSize) |
|
|
|
|
.toString(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -228,7 +229,8 @@ public class JsonRpcConfiguration { |
|
|
|
|
&& Objects.equals(rpcApis, that.rpcApis) |
|
|
|
|
&& Objects.equals(hostsAllowlist, that.hostsAllowlist) |
|
|
|
|
&& Objects.equals(authenticationCredentialsFile, that.authenticationCredentialsFile) |
|
|
|
|
&& Objects.equals(authenticationPublicKeyFile, that.authenticationPublicKeyFile); |
|
|
|
|
&& Objects.equals(authenticationPublicKeyFile, that.authenticationPublicKeyFile) |
|
|
|
|
&& maxBatchSize == that.maxBatchSize; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -242,7 +244,8 @@ public class JsonRpcConfiguration { |
|
|
|
|
hostsAllowlist, |
|
|
|
|
authenticationEnabled, |
|
|
|
|
authenticationCredentialsFile, |
|
|
|
|
authenticationPublicKeyFile); |
|
|
|
|
authenticationPublicKeyFile, |
|
|
|
|
maxBatchSize); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public int getMaxActiveConnections() { |
|
|
|
|