Skip to content

chore(rollup): add function to trigger seed snapshot for next epoch#13910

Merged
Maddiaa0 merged 21 commits intomasterfrom
md/seed-snapshot-trigger
May 12, 2025
Merged

chore(rollup): add function to trigger seed snapshot for next epoch#13910
Maddiaa0 merged 21 commits intomasterfrom
md/seed-snapshot-trigger

Conversation

@Maddiaa0
Copy link
Member

Overview

Adds cli arg to set the seed for the next epoch, much cheaper than performing the whole sampling

Copy link
Member Author

Maddiaa0 commented Apr 29, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

@LHerskind LHerskind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setupSampleSeed.tree is empty but otherwise neat.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oopsie

Base automatically changed from md/seed-snapshots to master April 29, 2025 11:46
@Maddiaa0 Maddiaa0 enabled auto-merge April 29, 2025 13:46
contract SetupSampleSeedTest is ValidatorSelectionTestBase {
function test_setupSampleSeed(uint16 _epochToTest) public setup(4) {
// Check that the epoch is not set
bound(_epochToTest, 2, type(uint16).max);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bound is not actually used, you it returns a value so we can run into just throwing in 0 and then we end up underflowing further down

@Maddiaa0 Maddiaa0 force-pushed the md/seed-snapshot-trigger branch from 174ecc1 to 52e33e8 Compare May 12, 2025 16:25
@Maddiaa0 Maddiaa0 requested a review from just-mitch as a code owner May 12, 2025 16:36
@Maddiaa0 Maddiaa0 requested a review from LHerskind May 12, 2025 17:12
@Maddiaa0 Maddiaa0 added this pull request to the merge queue May 12, 2025
Merged via the queue into master with commit 1318fb4 May 12, 2025
8 checks passed
@Maddiaa0 Maddiaa0 deleted the md/seed-snapshot-trigger branch May 12, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants