Instantiates a new validator.
(chain_spec: Arc<ChainSpec>)
| 91 | impl<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 | |
| 103 | impl<Tx, ChainSpec> Clone for BaseEngineValidator<Tx, ChainSpec> |