Returns the predicate an indexed transaction is parked under.
(&self, transaction_hash: TxHash)
| 189 | |
| 190 | /// Returns the predicate an indexed transaction is parked under. |
| 191 | pub fn predicate(&self, transaction_hash: TxHash) -> Option<&ValidityPredicate> { |
| 192 | self.transactions.get(&transaction_hash).map(|entry| &entry.predicate) |
| 193 | } |
| 194 | |
| 195 | /// Returns an indexed transaction and the predicate it is parked under, with one lookup. |
| 196 | pub fn entry(&self, transaction_hash: TxHash) -> Option<(&T, &ValidityPredicate)> { |