[−][src]Trait grin_pool::types::BlockChain
Interface that the pool requires from a blockchain implementation.
Required methods
fn verify_coinbase_maturity(&self, inputs: &Inputs) -> Result<(), PoolError>
Verify any coinbase outputs being spent have matured sufficiently.
fn verify_tx_lock_height(&self, tx: &Transaction) -> Result<(), PoolError>
Verify any coinbase outputs being spent have matured sufficiently.
fn validate_tx(&self, tx: &Transaction) -> Result<(), PoolError>
Validate a transaction against the current utxo.
fn validate_inputs(
&self,
inputs: &Inputs
) -> Result<Vec<OutputIdentifier>, PoolError>
&self,
inputs: &Inputs
) -> Result<Vec<OutputIdentifier>, PoolError>
Validate inputs against the current utxo. Returns the vec of output identifiers that would be spent by these inputs if they can all be successfully spent.