Merge pull request #113 from jl777/dev

change notaries RPC default to current height
This commit is contained in:
jl777
2017-01-14 14:57:13 +02:00
committed by GitHub

View File

@@ -464,7 +464,7 @@ Value notaries(const Array& params, bool fHelp)
LOCK(cs_main); LOCK(cs_main);
int32_t height = atoi(params[0].get_str().c_str()); int32_t height = atoi(params[0].get_str().c_str());
if ( height < 0 ) if ( height < 0 )
height = 0; height = chainActive.Tip()->nHeight;
//fprintf(stderr,"notaries as of height.%d\n",height); //fprintf(stderr,"notaries as of height.%d\n",height);
//if ( height > chainActive.Height()+20000 ) //if ( height > chainActive.Height()+20000 )
// throw JSONRPCError(RPC_INVALID_PARAMETER, "Block height out of range"); // throw JSONRPCError(RPC_INVALID_PARAMETER, "Block height out of range");