openethereum/rpc/src/v1/helpers/poll_filter.rs

14 lines
250 B
Rust
Raw Normal View History

2016-02-23 18:51:29 +01:00
//! Helper type with all filter possibilities.
use util::hash::H256;
2016-02-23 18:51:29 +01:00
use ethcore::filter::Filter;
pub type BlockNumber = u64;
2016-02-23 18:51:29 +01:00
#[derive(Clone)]
pub enum PollFilter {
Block(BlockNumber),
PendingTransaction(Vec<H256>),
Logs(BlockNumber, Filter)
2016-02-23 18:51:29 +01:00
}