From 78c23c84c7d502474b442fdf68e8c4ecdf700e28 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 15 Apr 2018 18:10:28 +0300 Subject: [PATCH] Test --- src/rpcnet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index d2798f10c..13accb4c3 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -168,11 +168,13 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp) int32_t komodo_longestchain() { int32_t ht,n=0,num=0,maxheight=0,height = 0; - LOCK(cs_main); + //LOCK(cs_main); + fprintf(stderr,"komodo_longestchain\n"); vector vstats; CopyNodeStats(vstats); BOOST_FOREACH(const CNodeStats& stats, vstats) { + fprintf(stderr,"komodo_longestchain iter.%d\n",n); CNodeStateStats statestats; bool fStateStats = GetNodeStateStats(stats.nodeid,statestats); ht = 0;