From 895f044ae6325cbffc6c967422a723208cf9443a Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 11 Nov 2016 21:30:04 -0300 Subject: [PATCH] test --- src/rpcblockchain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index c692b34ae..05a2907f3 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -394,7 +394,9 @@ Value notaries(const Array& params, bool fHelp) throw runtime_error("notaries height\n"); LOCK(cs_main); int32_t height = atoi(params[0].get_str().c_str()); - if ( height < 0 || height > chainActive.Height()+2000 ) + if ( height < 0 ) + height = 0; + if ( height > chainActive.Height()+20000 ) throw JSONRPCError(RPC_INVALID_PARAMETER, "Block height out of range"); else {