-
Notifications
You must be signed in to change notification settings - Fork 927
Persist only custody columns in db #8188
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
Persist only custody columns in db #8188
Conversation
| let columns_to_custody = self.custody_columns_for_epoch(Some( | ||
| block_slot.epoch(T::EthSpec::slots_per_epoch()), | ||
| )); | ||
| // Supernodes need to persist all sampled custody columns |
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.
| // Supernodes need to persist all sampled custody columns | |
| // If `columns_to_custody` contains all possible custody groups, no need to filter |
I would update in the comment the mention of supernode. In the future, nodes custodying >50% of columns and doing reconstruction may be supernodes?
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.
I think this is fine, supernode is explicitly defined here in the spec
https://github.com/ethereum/consensus-specs/blob/dev/specs/fulu/p2p-interface.md#supernodes
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 test! Just some minor comments
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, the changes are simple enough i think we should include it in the rc.1 release once Lion's comments are addressed.
commit aa64356 Author: Pawan Dhananjay <[email protected]> Date: Fri Oct 10 15:30:45 2025 -0700 lint commit 9fab592 Author: Pawan Dhananjay <[email protected]> Date: Fri Oct 10 15:10:05 2025 -0700 Get claude to write tests commit bd181a3 Author: Pawan Dhananjay <[email protected]> Date: Fri Oct 10 13:34:41 2025 -0700 Only persist custody columns
|
Some required checks have failed. Could you please take a look @pawanjay176? 🙏 |
* Only persist custody columns * Get claude to write tests * lint * Address review comments and fix tests. * Use supernode only when building chain segments * Clean up * Rewrite tests. * Fix tests * Clippy --------- Co-authored-by: Jimmy Chen <[email protected]> Co-authored-by: Michael Sproul <[email protected]>
Issue Addressed
Resolves #8129
Proposed Changes
Persist only the custody columns and not sampling columns like before.