Trait transaction_pool::Verifier [−][src]
pub trait Verifier<U> {
type Error;
type VerifiedTransaction: VerifiedTransaction;
fn verify_transaction(
&self,
tx: U
) -> Result<Self::VerifiedTransaction, Self::Error>;
}Transaction verification.
Verifier is responsible to decide if the transaction should even be considered for pool inclusion.
Associated Types
Required Methods
fn verify_transaction(
&self,
tx: U
) -> Result<Self::VerifiedTransaction, Self::Error>
&self,
tx: U
) -> Result<Self::VerifiedTransaction, Self::Error>
Verifies a UnverifiedTransaction and produces VerifiedTransaction instance.