Struct sov_sequencer_registry::SequencerConfig
source · pub struct SequencerConfig<C: Context> {
pub seq_rollup_address: C::Address,
pub seq_da_address: Vec<u8>,
pub coins_to_lock: Coins<C>,
pub is_preferred_sequencer: bool,
}Expand description
Genesis configuration for the SequencerRegistry module.
This struct must be passed as an argument to
Module::genesis.
Fields§
§seq_rollup_address: C::AddressThe rollup address of the sequencer.
seq_da_address: Vec<u8>The Data Availability (DA) address of the sequencer.
coins_to_lock: Coins<C>Coins that will be slashed if the sequencer is malicious.
The coins will be transferred from
SequencerConfig::seq_rollup_address to this module’s address
(ModuleInfo::address) and locked away until the sequencer
decides to exit (unregister).
Only sequencers that are SequencerRegistry::is_sender_allowed list are
allowed to exit.
is_preferred_sequencer: boolDetermines whether this sequencer is regular or preferred.
Batches from the preferred sequencer are always processed first in block, which means the preferred sequencer can guarantee soft confirmation time for transactions.