Browse Source

blockNumber accepts pending

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

2
libweb3jsonrpc/WebThreeStubServerBase.cpp

@ -242,6 +242,8 @@ static int toBlockNumber(string const& _string)
{ {
if (_string.compare("latest") == 0) if (_string.compare("latest") == 0)
return -1; return -1;
if (_string.compare("pending") == 0)
return 0;
return jsToInt(_string); return jsToInt(_string);
} }

Loading…
Cancel
Save