streamline

This commit is contained in:
jl777
2018-04-25 15:04:16 +03:00
parent cdf589a2fd
commit 265660f7cb
3 changed files with 12 additions and 10 deletions

View File

@@ -88,13 +88,13 @@ UniValue getinfo(const UniValue& params, bool fHelp)
+ HelpExampleCli("getinfo", "")
+ HelpExampleRpc("getinfo", "")
);
fprintf(stderr,"before LOCK cs_main\n");
//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");
//fprintf(stderr,"after LOCK cs_main\n");
proxyType proxy;
GetProxy(NET_IPV4, proxy);
@@ -125,7 +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");
//fprintf(stderr,"after longestchain\n");
obj.push_back(Pair("longestchain", longestchain));
obj.push_back(Pair("timeoffset", GetTimeOffset()));
if ( chainActive.Tip() != 0 )