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

Method from

crates/consensus/cli/src/node.rs:326–340  ·  view source on GitHub ↗
(args: EmbeddedConsensusNodeConfigArgs)

Source from the content-addressed store, hash-verified

324
325impl From<EmbeddedConsensusNodeConfigArgs> for ConsensusNodeConfigArgs {
326 fn from(args: EmbeddedConsensusNodeConfigArgs) -> Self {
327 Self {
328 node_mode: NodeMode::Validator,
329 l1_rpc_args: args.l1_rpc_args,
330 l2_client_args: args.l2_client_args.into(),
331 l1_config: args.l1_config,
332 l2_config: args.l2_config,
333 p2p_flags: args.p2p_flags.into(),
334 rpc_flags: args.rpc_flags.into(),
335 sequencer_flags: SequencerArgs::default(),
336 safedb_path: args.safedb_path,
337 checkpoint_path: args.checkpoint_path,
338 upgrade_signal: UpgradeSignalArgs::default(),
339 }
340 }
341}
342
343impl From<EmbeddedSequencerConsensusNodeConfigArgs> for ConsensusNodeConfigArgs {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected