Struct ethcore::miner::pool_client::PoolClient [−][src]
pub struct PoolClient<'a, C: 'a> { /* fields omitted */ }
Blockchain accesss for transaction pool.
Methods
impl<'a, C: 'a> PoolClient<'a, C> where
C: BlockInfo + CallContract,
[src]
impl<'a, C: 'a> PoolClient<'a, C> where
C: BlockInfo + CallContract,
pub fn new(
chain: &'a C,
cache: &'a NonceCache,
engine: &'a EthEngine,
accounts: Option<&'a AccountProvider>,
refuse_service_transactions: bool
) -> Self
[src]
pub fn new(
chain: &'a C,
cache: &'a NonceCache,
engine: &'a EthEngine,
accounts: Option<&'a AccountProvider>,
refuse_service_transactions: bool
) -> Self
Creates new client given chain, nonce cache, accounts and service transaction verifier.
pub fn verify_signed(&self, tx: &SignedTransaction) -> Result<(), Error>
[src]
pub fn verify_signed(&self, tx: &SignedTransaction) -> Result<(), Error>
Verifies if signed transaction is executable.
This should perform any verifications that rely on chain status.
Trait Implementations
impl<'a, C: 'a> Clone for PoolClient<'a, C>
[src]
impl<'a, C: 'a> Clone for PoolClient<'a, C>
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a, C: 'a> Debug for PoolClient<'a, C>
[src]
impl<'a, C: 'a> Debug for PoolClient<'a, C>
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a, C: 'a> Client for PoolClient<'a, C> where
C: TransactionVerifierClient + Sync,
[src]
impl<'a, C: 'a> Client for PoolClient<'a, C> where
C: TransactionVerifierClient + Sync,
fn transaction_already_included(&self, hash: &H256) -> bool
[src]
fn transaction_already_included(&self, hash: &H256) -> bool
Is transaction with given hash already in the blockchain?
fn verify_transaction(
&self,
tx: UnverifiedTransaction
) -> Result<SignedTransaction, Error>
[src]
fn verify_transaction(
&self,
tx: UnverifiedTransaction
) -> Result<SignedTransaction, Error>
Structurarily verify given transaction.
fn account_details(&self, address: &Address) -> AccountDetails
[src]
fn account_details(&self, address: &Address) -> AccountDetails
Fetch account details for given sender.
fn required_gas(&self, tx: &Transaction) -> U256
[src]
fn required_gas(&self, tx: &Transaction) -> U256
Estimate minimal gas requirurement for given transaction.
fn transaction_type(&self, tx: &SignedTransaction) -> TransactionType
[src]
fn transaction_type(&self, tx: &SignedTransaction) -> TransactionType
Classify transaction (check if transaction is filtered by some contracts).
fn decode_transaction(
&self,
transaction: &[u8]
) -> Result<UnverifiedTransaction, Error>
[src]
fn decode_transaction(
&self,
transaction: &[u8]
) -> Result<UnverifiedTransaction, Error>
Performs pre-validation of RLP decoded transaction
impl<'a, C: 'a> NonceClient for PoolClient<'a, C> where
C: Nonce + Sync,
[src]
impl<'a, C: 'a> NonceClient for PoolClient<'a, C> where
C: Nonce + Sync,
fn account_nonce(&self, address: &Address) -> U256
[src]
fn account_nonce(&self, address: &Address) -> U256
Fetch only account nonce for given sender.
Auto Trait Implementations
impl<'a, C> Send for PoolClient<'a, C> where
C: Sync,
impl<'a, C> Send for PoolClient<'a, C> where
C: Sync,
impl<'a, C> Sync for PoolClient<'a, C> where
C: Sync,
impl<'a, C> Sync for PoolClient<'a, C> where
C: Sync,