From cdf589a2fda6fc237370512206bf5698982c9b07 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 25 Apr 2018 14:38:31 +0300 Subject: [PATCH] Test --- src/rpcmisc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rpcmisc.cpp b/src/rpcmisc.cpp index 5b117d03f..b4e63b9b0 100644 --- a/src/rpcmisc.cpp +++ b/src/rpcmisc.cpp @@ -88,12 +88,13 @@ UniValue getinfo(const UniValue& params, bool fHelp) + HelpExampleCli("getinfo", "") + HelpExampleRpc("getinfo", "") ); - + fprintf(stderr,"before LOCK cs_main\n"); #ifdef ENABLE_WALLET LOCK2(cs_main, pwalletMain ? &pwalletMain->cs_wallet : NULL); #else LOCK(cs_main); #endif + fprintf(stderr,"after LOCK cs_main\n"); proxyType proxy; GetProxy(NET_IPV4, proxy); @@ -124,6 +125,7 @@ UniValue getinfo(const UniValue& params, bool fHelp) obj.push_back(Pair("blocks", (int)chainActive.Height())); if ( (longestchain= komodo_longestchain()) != 0 && chainActive.Height() > longestchain ) longestchain = chainActive.Height(); + fprintf(stderr,"after longestchain\n"); obj.push_back(Pair("longestchain", longestchain)); obj.push_back(Pair("timeoffset", GetTimeOffset())); if ( chainActive.Tip() != 0 )