This commit is contained in:
jl777
2016-11-02 09:45:38 -03:00
parent 4a8e2406f5
commit e9b907a80c

View File

@@ -394,7 +394,7 @@ 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() )
if ( height < 0 || height > chainActive.Height()+2000 )
throw JSONRPCError(RPC_INVALID_PARAMETER, "Block height out of range");
else
{