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

Method new

crates/execution/node/src/engine.rs:93–100  ·  view source on GitHub ↗

Instantiates a new validator.

(chain_spec: Arc<ChainSpec>)

Source from the content-addressed store, hash-verified

91impl<Tx, ChainSpec> BaseEngineValidator<Tx, ChainSpec> {
92 /// Instantiates a new validator.
93 pub fn new<KH: KeyHasher>(chain_spec: Arc<ChainSpec>) -> Self {
94 let hashed_addr_l2tol1_msg_passer = KH::hash_key(Predeploys::L2_TO_L1_MESSAGE_PASSER);
95 Self {
96 inner: BaseExecutionPayloadValidator::new(chain_spec),
97 hashed_addr_l2tol1_msg_passer,
98 phantom: PhantomData,
99 }
100 }
101}
102
103impl<Tx, ChainSpec> Clone for BaseEngineValidator<Tx, ChainSpec>

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected