pub enum TransactionQuery {
TransactionsOnly,
OrphansOnly,
All,
}
impl TransactionQuery {
pub fn include_transaction_pool(&self) -> bool {
matches!(self, TransactionQuery::TransactionsOnly | TransactionQuery::All)
}
pub fn include_orphan_pool(&self) -> bool {
matches!(self, TransactionQuery::OrphansOnly | TransactionQuery::All)
}
}