diff --git a/lib/gethfork/node/api.go b/lib/gethfork/node/api.go index 59d801cdad..213f2f1be5 100644 --- a/lib/gethfork/node/api.go +++ b/lib/gethfork/node/api.go @@ -70,7 +70,8 @@ func (api *adminAPI) StartHTTP(host *string, port *int, cors *string, apis *stri Vhosts: api.node.config.HTTPVirtualHosts, Modules: api.node.config.HTTPModules, rpcEndpointConfig: rpcEndpointConfig{ - batchItemLimit: api.node.config.BatchRequestLimit, + //batchItemLimit: api.node.config.BatchRequestLimit, + batchItemLimit: 1, batchResponseSizeLimit: api.node.config.BatchResponseMaxSize, }, ExposedParam: "token", @@ -149,7 +150,8 @@ func (api *adminAPI) StartWS(host *string, port *int, allowedOrigins *string, ap Origins: api.node.config.WSOrigins, // ExposeAll: api.node.config.WSExposeAll, rpcEndpointConfig: rpcEndpointConfig{ - batchItemLimit: api.node.config.BatchRequestLimit, + //batchItemLimit: api.node.config.BatchRequestLimit, + batchItemLimit: 1, batchResponseSizeLimit: api.node.config.BatchResponseMaxSize, }, ExposedParam: "token", diff --git a/lib/gethfork/node/node.go b/lib/gethfork/node/node.go index 0aa272dc92..039fcceda3 100644 --- a/lib/gethfork/node/node.go +++ b/lib/gethfork/node/node.go @@ -353,7 +353,8 @@ func (n *Node) startRPC() error { ) rpcConfig := rpcEndpointConfig{ - batchItemLimit: n.config.BatchRequestLimit, + //batchItemLimit: n.config.BatchRequestLimit, + batchItemLimit: 1, batchResponseSizeLimit: n.config.BatchResponseMaxSize, } @@ -400,8 +401,9 @@ func (n *Node) startRPC() error { return err } sharedConfig := rpcEndpointConfig{ - jwtSecret: secret, - batchItemLimit: engineAPIBatchItemLimit, + jwtSecret: secret, + //batchItemLimit: engineAPIBatchItemLimit, + batchItemLimit: 1, batchResponseSizeLimit: engineAPIBatchResponseSizeLimit, } if err := server.enableRPC(allAPIs, httpConfig{