From 5eff1f65d34a23dcb0e9e4a250b756723075fd9f Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Tue, 10 Mar 2015 08:30:53 +0100 Subject: [PATCH] eth_newBlockFilter accepts pending && latest options --- libweb3jsonrpc/WebThreeStubServerBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweb3jsonrpc/WebThreeStubServerBase.cpp b/libweb3jsonrpc/WebThreeStubServerBase.cpp index e0fac4f10..19af946f4 100644 --- a/libweb3jsonrpc/WebThreeStubServerBase.cpp +++ b/libweb3jsonrpc/WebThreeStubServerBase.cpp @@ -774,7 +774,7 @@ string WebThreeStubServerBase::eth_newBlockFilter(string const& _filter) { h256 filter; - if (_filter.compare("chain") == 0) + if (_filter.compare("chain") == 0 || _filter.compare("latest") == 0) filter = dev::eth::ChainChangedFilter; else if (_filter.compare("pending") == 0) filter = dev::eth::PendingChangedFilter;