Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Mar 15, 2024
1 parent b90408a commit 9d78fd9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/gethfork/node/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
8 changes: 5 additions & 3 deletions lib/gethfork/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 9d78fd9

Please sign in to comment.