From d0b75e59d0a467230edfa923d0744f28a9e8b8ef Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Tue, 10 Mar 2015 08:12:02 +0100 Subject: [PATCH] blockNumber accepts pending --- libweb3jsonrpc/WebThreeStubServerBase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libweb3jsonrpc/WebThreeStubServerBase.cpp b/libweb3jsonrpc/WebThreeStubServerBase.cpp index 0da75535b..e0fac4f10 100644 --- a/libweb3jsonrpc/WebThreeStubServerBase.cpp +++ b/libweb3jsonrpc/WebThreeStubServerBase.cpp @@ -242,6 +242,8 @@ static int toBlockNumber(string const& _string) { if (_string.compare("latest") == 0) return -1; + if (_string.compare("pending") == 0) + return 0; return jsToInt(_string); }