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

Function validates_sequencer_key

crates/consensus/cli/src/node.rs:885–899  ·  view source on GitHub ↗
(
        #[case] mode: NodeMode,
        #[case] signer: SignerArgs,
        #[case] expected_ok: bool,
    )

Source from the content-addressed store, hash-verified

883 true
884 )]
885 fn validates_sequencer_key(
886 #[case] mode: NodeMode,
887 #[case] signer: SignerArgs,
888 #[case] expected_ok: bool,
889 ) {
890 let args = ConsensusNodeArgs::new(
891 ConsensusChainArgs { l2_chain_id: Chain::from(8453_u64) },
892 ConsensusNodeConfigArgs {
893 node_mode: mode,
894 p2p_flags: P2PArgs { signer, ..P2PArgs::default() },
895 ..default_node_config_args()
896 },
897 );
898 assert_eq!(args.validate_sequencer_key().is_ok(), expected_ok);
899 }
900
901 #[test]
902 fn embedded_sequencer_args_force_sequencer_mode_and_preserve_flags() {

Callers

nothing calls this directly

Calls 1

default_node_config_argsFunction · 0.85

Tested by

no test coverage detected