-
Notifications
You must be signed in to change notification settings - Fork 817
Make RPC request limit configurable #3981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Gm @jochem-brouwer can I work on this issue? |
Here is the approach I would like to propose: The idea would be to add two new parameters in the configuration file:
Another option could be to enforce that |
Hey @ether-wan, sorry I wanted to reply to this yesterday but I forgot! This is a good issue to start on and your approach looks good to me! I am only not sure if we are running both |
Just assigned you, feel free to move ahead with this and let us know if you run in any problems or have a question. If you prefer chat, we have a discord https://discord.gg/TNwARpR 😄 👍 |
Yes, you're right! I've just realised that by default, two servers are created: one on port That's great because it simplifies setting different maximum payload sizes for each server 😁 |
Ah right good point I confused the ports, it's indeed 8551 for the engine (8546 for websocket JSON-RPC) |
The current limit of the JSON-RPC service (for both RPCs like
eth
andengine
) is currently hardcoded at 11MBethereumjs-monorepo/packages/client/src/util/rpc.ts
Lines 191 to 192 in 79155fe
For JSON-RPC
eth
this seems wayyy too high. Forengine
, this could be too low, especially if these are full blocks with blobs in them (and also since the max blobs in Prague is now 9, not 6 (Cancun)). We should raise this limit on the engine JSON-RPC service since this service is trusted and authenticated.Additionally, we should add CLI flags to edit the limits of the trusted service (engine) and the non-trusted service (eth/debug/whatever, anything which is not engine)
The text was updated successfully, but these errors were encountered: