Creates start options with default overrides and a fresh cancellation token.
(rollup_config: RollupConfig)
| 135 | impl ConsensusNodeStartOptions { |
| 136 | /// Creates start options with default overrides and a fresh cancellation token. |
| 137 | pub fn new(rollup_config: RollupConfig) -> Self { |
| 138 | Self { |
| 139 | rollup_config, |
| 140 | overrides: ConsensusNodeOverrides::default(), |
| 141 | cancellation: CancellationToken::new(), |
| 142 | upgrade_signal_startup_mode: UpgradeSignalStartupMode::ReadAndApply, |
| 143 | payload_ready: None, |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | /// Enables early sealing of matching frozen payloads from embedded execution. |
| 148 | pub fn with_payload_ready(self, receiver: broadcast::Receiver<PayloadReady>) -> Self { |