Merge pull request #948 from ethcore/filter_from_default

default filter from block should be Latest, not Earliest
This commit is contained in:
Nikolay Volf 2016-04-13 13:08:58 +03:00
commit 293722a179

View File

@ -61,7 +61,7 @@ pub struct Filter {
impl Into<EthFilter> for Filter {
fn into(self) -> EthFilter {
EthFilter {
from_block: self.from_block.map_or_else(|| BlockId::Earliest, Into::into),
from_block: self.from_block.map_or_else(|| BlockId::Latest, Into::into),
to_block: self.to_block.map_or_else(|| BlockId::Latest, Into::into),
address: self.address.and_then(|address| match address {
VariadicValue::Null => None,