Browse Source

eth_newBlockFilter accepts pending && latest options

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
5eff1f65d3
  1. 2
      libweb3jsonrpc/WebThreeStubServerBase.cpp

2
libweb3jsonrpc/WebThreeStubServerBase.cpp

@ -774,7 +774,7 @@ string WebThreeStubServerBase::eth_newBlockFilter(string const& _filter)
{ {
h256 filter; h256 filter;
if (_filter.compare("chain") == 0) if (_filter.compare("chain") == 0 || _filter.compare("latest") == 0)
filter = dev::eth::ChainChangedFilter; filter = dev::eth::ChainChangedFilter;
else if (_filter.compare("pending") == 0) else if (_filter.compare("pending") == 0)
filter = dev::eth::PendingChangedFilter; filter = dev::eth::PendingChangedFilter;

Loading…
Cancel
Save