Trait ethcore::verification::verifier::Verifier
[−]
[src]
pub trait Verifier<C>: Send + Sync where
C: BlockInfo + CallContract, { fn verify_block_family(
&self,
header: &Header,
parent: &Header,
engine: &EthEngine,
do_full: Option<FullFamilyParams<C>>
) -> Result<(), Error>; fn verify_block_final(
&self,
expected: &Header,
got: &Header
) -> Result<(), Error>; fn verify_block_external(
&self,
header: &Header,
engine: &EthEngine
) -> Result<(), Error>; }
Should be used to verify blocks.
Required Methods
fn verify_block_family(
&self,
header: &Header,
parent: &Header,
engine: &EthEngine,
do_full: Option<FullFamilyParams<C>>
) -> Result<(), Error>
&self,
header: &Header,
parent: &Header,
engine: &EthEngine,
do_full: Option<FullFamilyParams<C>>
) -> Result<(), Error>
Verify a block relative to its parent and uncles.
fn verify_block_final(
&self,
expected: &Header,
got: &Header
) -> Result<(), Error>
&self,
expected: &Header,
got: &Header
) -> Result<(), Error>
Do a final verification check for an enacted header vs its expected counterpart.
fn verify_block_external(
&self,
header: &Header,
engine: &EthEngine
) -> Result<(), Error>
&self,
header: &Header,
engine: &EthEngine
) -> Result<(), Error>
Verify a block, inspecing external state.
Implementors
impl<C: BlockInfo + CallContract> Verifier<C> for CanonVerifier
impl<C: BlockInfo + CallContract> Verifier<C> for NoopVerifier