From f5ed5979fbfe6cabc73053e6fb60f238772c8d5a Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 24 Nov 2018 03:57:27 -1100 Subject: [PATCH] +prints --- src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index cc445a8f8..e743c6d18 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5193,11 +5193,11 @@ bool ProcessNewBlock(bool from_miner,int32_t height,CValidationState &state, CNo CheckBlockIndex(); if (!ret && futureblock == 0) { - /*if ( KOMODO_INSYNC == 0 ) + if ( ASSETCHAINS_SYMBOL[0] == 0 ) { - //fprintf(stderr,"request headers from failed process block peer\n"); + fprintf(stderr,"request headers from failed process block peer\n"); pfrom->PushMessage("getheaders", chainActive.GetLocator(chainActive.LastTip()), uint256()); - }*/ + } komodo_longestchain(); return error("%s: AcceptBlock FAILED", __func__); } @@ -6509,7 +6509,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, return true; } -//fprintf(stderr,"netmsg: %s\n", strCommand.c_str()); +fprintf(stderr,"netmsg: %s\n", strCommand.c_str()); if (strCommand == "version") { @@ -6886,7 +6886,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, if (chainActive.LastTip() != 0 && chainActive.LastTip()->GetHeight() > 100000 && IsInitialBlockDownload()) { - //fprintf(stderr,"dont process getheaders during initial download\n"); + fprintf(stderr,"dont process getheaders during initial download\n"); return true; } CBlockIndex* pindex = NULL; @@ -6896,7 +6896,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, BlockMap::iterator mi = mapBlockIndex.find(hashStop); if (mi == mapBlockIndex.end()) { - //fprintf(stderr,"mi == end()\n"); + fprintf(stderr,"mi == end()\n"); return true; } pindex = (*mi).second;