added trailin ,
This commit is contained in:
parent
61e1720d07
commit
8f4c2d98ba
@ -52,7 +52,7 @@ pub struct CacheSize {
|
||||
/// Blooms cache size.
|
||||
pub blocks_blooms: usize,
|
||||
/// Block receipts size.
|
||||
pub block_receipts: usize
|
||||
pub block_receipts: usize,
|
||||
}
|
||||
|
||||
struct BloomIndexer {
|
||||
@ -106,7 +106,7 @@ struct ExtrasUpdate {
|
||||
/// New best block (if it has changed).
|
||||
new_best: Option<BestBlock>,
|
||||
/// Changed blocks bloom location hashes.
|
||||
bloom_hashes: HashSet<H256>
|
||||
bloom_hashes: HashSet<H256>,
|
||||
}
|
||||
|
||||
impl CacheSize {
|
||||
|
@ -65,7 +65,7 @@ pub struct ChainFilter<'a, D>
|
||||
where D: FilterDataSource + 'a
|
||||
{
|
||||
data_source: &'a D,
|
||||
indexer: Indexer
|
||||
indexer: Indexer,
|
||||
}
|
||||
|
||||
impl<'a, D> ChainFilter<'a, D> where D: FilterDataSource
|
||||
|
@ -21,7 +21,7 @@ use chainfilter::BloomIndex;
|
||||
/// Simplifies working with bloom indexes.
|
||||
pub struct Indexer {
|
||||
index_size: usize,
|
||||
level_sizes: Vec<usize>
|
||||
level_sizes: Vec<usize>,
|
||||
}
|
||||
|
||||
impl Indexer {
|
||||
|
@ -26,7 +26,7 @@ use ethcore::client::BlockId;
|
||||
pub enum VariadicValue<T> where T: Deserialize {
|
||||
Single(T),
|
||||
Multiple(Vec<T>),
|
||||
Null
|
||||
Null,
|
||||
}
|
||||
|
||||
impl<T> Deserialize for VariadicValue<T> where T: Deserialize {
|
||||
@ -54,7 +54,7 @@ pub struct Filter {
|
||||
#[serde(rename="toBlock")]
|
||||
pub to_block: Option<BlockNumber>,
|
||||
pub address: Option<FilterAddress>,
|
||||
pub topics: Option<Vec<Topic>>
|
||||
pub topics: Option<Vec<Topic>>,
|
||||
}
|
||||
|
||||
impl Into<EthFilter> for Filter {
|
||||
|
Loading…
Reference in New Issue
Block a user