From fd2d55934b5285d213661014e064d7aa64ca497b Mon Sep 17 00:00:00 2001 From: debris Date: Wed, 13 Apr 2016 11:32:28 +0200 Subject: [PATCH] default filter from block should be Latest, not Earliest --- rpc/src/v1/types/filter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/src/v1/types/filter.rs b/rpc/src/v1/types/filter.rs index 16a08764b..91707dfa3 100644 --- a/rpc/src/v1/types/filter.rs +++ b/rpc/src/v1/types/filter.rs @@ -61,7 +61,7 @@ pub struct Filter { impl Into 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,