From 59d4e939bdde89d031bc12283516fdfc3679a06e Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 19 Jul 2019 05:40:31 -1100 Subject: [PATCH] +prints --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 43dbc4550..f6fc6d55f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7090,8 +7090,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, const CChainParams& chainparams = Params(); LogPrint("net", "received: %s (%u bytes) peer=%d\n", SanitizeString(strCommand), vRecv.size(), pfrom->id); //if ( KOMODO_NSPV != 0 ) - //if ( strCommand != "version" && strCommand != "verack" ) - fprintf(stderr, "recv: %s peer=%d\n", SanitizeString(strCommand).c_str(), (int32_t)pfrom->GetId()); + if ( strCommand != "version" && strCommand != "verack" && strCommand != "ping" && strCommand != "pong" ) + fprintf(stderr, "recv: %s (%u bytes) peer=%d\n", SanitizeString(strCommand).c_str(), vRecv.size(), (int32_t)pfrom->GetId()); if (mapArgs.count("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0) { LogPrintf("dropmessagestest DROPPING RECV MESSAGE\n"); @@ -7464,6 +7464,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, } else if (strCommand == "getnSPV") { + fprintf(stderr,"got getnSPV\n"); std::vector payload; vRecv >> payload; komodo_nSPVreq(pfrom,payload);