Trait ethcore_miner::pool::client::Client [−][src]
pub trait Client: Debug + Sync { fn transaction_already_included(&self, hash: &H256) -> bool; fn verify_transaction(
&self,
tx: UnverifiedTransaction
) -> Result<SignedTransaction, Error>; fn required_gas(&self, tx: &Transaction) -> U256; fn account_details(&self, address: &Address) -> AccountDetails; fn transaction_type(&self, tx: &SignedTransaction) -> TransactionType; fn decode_transaction(
&self,
transaction: &[u8]
) -> Result<UnverifiedTransaction, Error>; }
Verification client.
Required Methods
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>
&self,
tx: UnverifiedTransaction
) -> Result<SignedTransaction, Error>
Structurarily verify given transaction.
fn required_gas(&self, tx: &Transaction) -> U256
Estimate minimal gas requirurement for given transaction.
fn account_details(&self, address: &Address) -> AccountDetails
Fetch account details for given sender.
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>
&self,
transaction: &[u8]
) -> Result<UnverifiedTransaction, Error>
Performs pre-validation of RLP decoded transaction