Merge branch 'master' into clippy-dev

Conflicts:
	util/src/journaldb.rs
This commit is contained in:
Tomasz Drwięga
2016-03-07 14:35:42 +01:00
3 changed files with 9 additions and 10 deletions

View File

@@ -312,7 +312,8 @@ impl EthFilter for EthFilterClient {
None => Ok(Value::Array(vec![] as Vec<Value>)),
Some(info) => match info.filter {
PollFilter::Block => {
let current_number = client.chain_info().best_block_number;
// + 1, cause we want to return hashes including current block hash.
let current_number = client.chain_info().best_block_number + 1;
let hashes = (info.block_number..current_number).into_iter()
.map(BlockId::Number)
.filter_map(|id| client.block_hash(id))