-
Notifications
You must be signed in to change notification settings - Fork 45
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
Eth rollup develop solo seq mod #714
Conversation
rollup/node/src/chain_spec.rs
Outdated
} else { | ||
Default::default() | ||
}, | ||
}, | ||
// Use sequncer staking genesis config - this is intended only for testing |
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.
// 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 = |
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.
👍
rollup/node/src/chain_spec.rs
Outdated
} else { | ||
Default::default() | ||
}, | ||
}, | ||
// Use sequncer staking genesis config - this is intended only for testing | ||
rolldown: rollup_runtime::RolldownConfig { sequencers: vec![] }, |
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.
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?
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.
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.
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)
No description provided.