pub trait Ready<T> {
// Required method
fn is_ready(&mut self, tx: &T) -> Readiness;
}Expand description
A readiness indicator.
Required Methods§
Sourcefn is_ready(&mut self, tx: &T) -> Readiness
fn is_ready(&mut self, tx: &T) -> Readiness
Returns true if transaction is ready to be included in pending block, given all previous transactions that were ready are already included.
NOTE: readiness of transactions will be checked according to Score ordering,
the implementation should maintain a state of already checked transactions.