From b013ec02df594036efec55538cc0f30464d1a18a Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 14 Jan 2017 13:51:24 +0200 Subject: [PATCH] change notaries RPC default to current height --- src/rpcblockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 696d9fc39..62ac42675 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -464,7 +464,7 @@ Value notaries(const Array& params, bool fHelp) LOCK(cs_main); int32_t height = atoi(params[0].get_str().c_str()); if ( height < 0 ) - height = 0; + height = chainActive.Tip()->nHeight; //fprintf(stderr,"notaries as of height.%d\n",height); //if ( height > chainActive.Height()+20000 ) // throw JSONRPCError(RPC_INVALID_PARAMETER, "Block height out of range");