-
Notifications
You must be signed in to change notification settings - Fork 745
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
Runtime rpc request sizes #4841
Runtime rpc request sizes #4841
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial review, but I'm keen to get the switching of the max request values at the fork.
I know @AgeManning disagreed with this approach earlier so keen to hear his thoughts too.
Ok, think I've addressed everything so far! |
…ntime-rpc-request-sizes
…ntime-rpc-request-sizes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good to me.
I've got two minor comments above, I'll create a PR for the changes if I have time today!
EDIT: sorry looks like i won't have time to get to this today.
Squashed commit of the following: commit a0c5343 Merge: 3a63dc4 0c97762 Author: Jimmy Chen <jchen.tc@gmail.com> Date: Mon Jan 8 10:37:01 2024 +1100 Merge branch 'unstable' into runtime-rpc-request-sizes commit 3a63dc4 Merge: 3326584 01994c4 Author: realbigsean <seananderson33@GMAIL.com> Date: Fri Jan 5 11:23:23 2024 -0500 Merge branch 'unstable' of https://github.com/sigp/lighthouse into runtime-rpc-request-sizes commit 3326584 Author: realbigsean <seananderson33@gmail.com> Date: Fri Dec 8 16:18:47 2023 -0500 fix compile commit d97b161 Merge: d350ea3 46184e5 Author: realbigsean <seananderson33@gmail.com> Date: Fri Dec 8 16:09:57 2023 -0500 Merge branch 'unstable' of https://github.com/sigp/lighthouse into runtime-rpc-request-sizes commit d350ea3 Author: realbigsean <seananderson33@gmail.com> Date: Mon Oct 16 16:09:17 2023 -0400 get values off chain spec commit b9c5926 Author: realbigsean <seananderson33@gmail.com> Date: Mon Oct 16 13:37:54 2023 -0400 move methods for per-fork-spec to chainspec commit dadfa1b Author: realbigsean <seananderson33@gmail.com> Date: Mon Oct 16 13:08:02 2023 -0400 add docs fix compilt commit 936af46 Author: realbigsean <seananderson33@gmail.com> Date: Mon Oct 16 12:58:14 2023 -0400 add new config to `Config` api struct commit 7b9f51e Merge: 150a1d8 ba0567d Author: realbigsean <seananderson33@gmail.com> Date: Mon Oct 16 11:59:25 2023 -0400 Merge branch 'deneb-free-blobs' of https://github.com/sigp/lighthouse into runtime-rpc-request-sizes commit 150a1d8 Author: realbigsean <seananderson33@gmail.com> Date: Thu Oct 12 22:12:35 2023 -0400 fix decode impl commit bc064f1 Author: realbigsean <seananderson33@gmail.com> Date: Thu Oct 12 20:18:44 2023 -0400 git rid of old const usage commit d6126cd Author: realbigsean <seananderson33@gmail.com> Date: Thu Oct 12 19:52:10 2023 -0400 remove todos commit 2cac7b5 Author: realbigsean <seananderson33@gmail.com> Date: Thu Oct 12 19:51:37 2023 -0400 fix tests and lints commit 67782ca Author: realbigsean <seananderson33@gmail.com> Date: Thu Oct 12 17:10:27 2023 -0400 git rid of max request blocks type commit ac5eb9a Author: realbigsean <seananderson33@gmail.com> Date: Thu Oct 12 16:04:13 2023 -0400 add configs to ChainSpec commit d0fe2ce Author: realbigsean <seananderson33@gmail.com> Date: Thu Oct 12 15:46:47 2023 -0400 add runtime variable list type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me too! Thanks
Issue Addressed
#4562
Proposed Changes
ChainSpec
typeRuntimeVariableList
that's used inRpcRequest
sQuestions
RuntimeVariableList
be added to the ssz types crate?ChainSpec
as well as some values we derive from newChainSpec
values toForkContext
, should these be moved elsewhere?blocks_by_root_request_max
) inForkContext
is that if they change across a fork we can dynamically update them inRpcLimits
for exampleblocks_by_root_request_max
across the fork? Same question formax_request_blocks
.max_request_blocks
decreases from 1024 to 128 in deneb. Another option would be to just use the higher value until we are through the deneb fork and in the next release, release the lower value. Or do the opposite and use the lower value in the deneb release.