Struct ethcore_miner::pool::verifier::Verifier [−][src]
pub struct Verifier<C, S, V> { /* fields omitted */ }
Transaction verifier.
Verification can be run in parallel for all incoming transactions.
Methods
impl<C, S, V> Verifier<C, S, V>
[src]
impl<C, S, V> Verifier<C, S, V>
pub fn new(
client: C,
options: Options,
id: Arc<AtomicUsize>,
transaction_to_replace: Option<(S, Arc<V>)>
) -> Self
[src]
pub fn new(
client: C,
options: Options,
id: Arc<AtomicUsize>,
transaction_to_replace: Option<(S, Arc<V>)>
) -> Self
Creates new transaction verfier with specified options.
Trait Implementations
impl<C: Debug, S: Debug, V: Debug> Debug for Verifier<C, S, V>
[src]
impl<C: Debug, S: Debug, V: Debug> Debug for Verifier<C, S, V>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<C: Client> Verifier<Transaction> for Verifier<C, NonceAndGasPrice, VerifiedTransaction>
[src]
impl<C: Client> Verifier<Transaction> for Verifier<C, NonceAndGasPrice, VerifiedTransaction>
type Error = Error
Verification error.
type VerifiedTransaction = VerifiedTransaction
Verified transaction.
fn verify_transaction(
&self,
tx: Transaction
) -> Result<Self::VerifiedTransaction, Self::Error>
[src]
fn verify_transaction(
&self,
tx: Transaction
) -> Result<Self::VerifiedTransaction, Self::Error>
Verifies a UnverifiedTransaction
and produces VerifiedTransaction
instance.