Skip to content
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

Eth rollup develop solo seq mod #714

Merged
merged 16 commits into from
Mar 29, 2024

Conversation

iStrike7
Copy link
Member

No description provided.

} else {
Default::default()
},
},
// Use sequncer staking genesis config - this is intended only for testing
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Use sequncer staking genesis config - this is intended only for testing
// Use sequencer staking genesis config - this is intended only for testing

@@ -184,6 +184,10 @@ impl ExtBuilder {
MockSequencerStakingProviderApi::is_active_sequencer_context();
is_liquidity_token_mock.expect().return_const(true);

let is_selected_sequencer_mock =
Copy link
Member

Choose a reason for hiding this comment

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

👍

} else {
Default::default()
},
},
// Use sequncer staking genesis config - this is intended only for testing
rolldown: rollup_runtime::RolldownConfig { sequencers: vec![] },
Copy link
Member

Choose a reason for hiding this comment

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

how about just removing genesis config for rolldown.

then in test instead of initializing genesis config with inital sequencers, we could just call

				Pallet::<T>::new_sequencer_active(s);

instead?

Copy link
Member

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.

This is what I was about to do when I realized that there's https://github.com/mangata-finance/mangata-node/blob/b5ab95aedf52dabbe292b0083dfdbba1bc7f8d7a/pallets/rolldown/src/lib.rs#L276
so we're gonna need a genesis config anyway (you could set that as the storage default value and get rid of that, but that might get a little confusing for someone reading the code)

@mateuszaaa mateuszaaa merged commit d7ac4bf into eth-rollup-develop Mar 29, 2024
12 checks passed
@mateuszaaa mateuszaaa deleted the eth-rollup-develop-solo-seq-mod branch March 29, 2024 11:19
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.

3 participants