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

Function validates_sequencer_key

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

Source from the content-addressed store, hash-verified

984 true
985 )]
986 fn validates_sequencer_key(
987 #[case] mode: NodeMode,
988 #[case] signer: SignerArgs,
989 #[case] expected_ok: bool,
990 ) {
991 let args = ConsensusNodeArgs::new(
992 ConsensusChainArgs { l2_chain_id: Chain::from(8453_u64) },
993 ConsensusNodeConfigArgs {
994 node_mode: mode,
995 p2p_flags: P2PArgs { signer, ..P2PArgs::default() },
996 ..default_node_config_args()
997 },
998 );
999 assert_eq!(args.validate_sequencer_key().is_ok(), expected_ok);
1000 }
1001
1002 #[test]
1003 fn shadow_sequencer_does_not_require_signing_key() {

Callers

nothing calls this directly

Calls 2

default_node_config_argsFunction · 0.85
newFunction · 0.50

Tested by

no test coverage detected