Fix loop start value (#9285)

This commit is contained in:
Jongsic Choi 2018-08-06 20:04:28 +09:00 committed by André Silva
parent 25604dc577
commit 3f2fd610d9

View File

@ -1843,7 +1843,7 @@ impl BlockChainClient for Client {
// Otherwise, we use a slower version that finds a link between from_block and to_block.
let from_hash = Self::block_hash(&chain, filter.from_block)?;
let from_number = chain.block_number(&from_hash)?;
let to_hash = Self::block_hash(&chain, filter.from_block)?;
let to_hash = Self::block_hash(&chain, filter.to_block)?;
let blooms = filter.bloom_possibilities();
let bloom_match = |header: &encoded::Header| {