MCPcopy Create free account
hub / github.com/base/base / new

Method new

crates/consensus/cli/src/node.rs:137–145  ·  view source on GitHub ↗

Creates start options with default overrides and a fresh cancellation token.

(rollup_config: RollupConfig)

Source from the content-addressed store, hash-verified

135impl 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 {

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected