Merge pull request #948 from ethcore/filter_from_default
default filter from block should be Latest, not Earliest
This commit is contained in:
commit
293722a179
@ -61,7 +61,7 @@ pub struct Filter {
|
|||||||
impl Into<EthFilter> for Filter {
|
impl Into<EthFilter> for Filter {
|
||||||
fn into(self) -> EthFilter {
|
fn into(self) -> EthFilter {
|
||||||
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),
|
to_block: self.to_block.map_or_else(|| BlockId::Latest, Into::into),
|
||||||
address: self.address.and_then(|address| match address {
|
address: self.address.and_then(|address| match address {
|
||||||
VariadicValue::Null => None,
|
VariadicValue::Null => None,
|
||||||
|
Loading…
Reference in New Issue
Block a user