From 67f562feee284da62d0de61a6d60ba606fecbea0 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Mon, 11 Aug 2014 09:28:48 -0700 Subject: [PATCH] removed output --- src/main.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9ef10b66c7..6934992572 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3910,26 +3910,17 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) vRecv >> vinWinningMasternode >> vinMasterNodeFrom >> nBlockHeight >> vchSig; - printf("dmcv -received\n"); - bool fIsInitialDownload = IsInitialBlockDownload(); if(fIsInitialDownload) return true; - printf("dmcv -done downloading\n"); - if(pindexBest == NULL) return true; if(nBlockHeight > pindexBest->nHeight + 5) { - printf("dmcv - vote too far into the future\n"); return false; } if(nBlockHeight < pindexBest->nHeight - 1) { - printf("dmcv - vote too far into the past\n"); return false; } - printf("dmcv -block height ok\n"); - printf("dmcv - masternode from vin %s\n", vinMasterNodeFrom.ToString().c_str()); - int mn = darkSendPool.GetMasternodeByVin(vinMasterNodeFrom); if (mn == -1) { // ask for the dsee info once from the node that sent dseep @@ -3944,8 +3935,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) } - printf("dmcv -know masternode\n"); - BOOST_FOREACH (PAIRTYPE(int64, CTxIn)& s, vecMasternodesVoted){ if(s.first == nBlockHeight && s.second == vinMasterNodeFrom){ printf("dmcv - found prev masternode vote for block\n"); @@ -3953,8 +3942,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) } } - printf("dmcv -hasn't voted\n"); - int rank = darkSendPool.GetMasternodeRank(vinMasterNodeFrom, 1); CPubKey pubkey = darkSendMasterNodes[mn].pubkey2; @@ -3963,22 +3950,16 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) return true; } - printf("dmcv -rank in range\n"); - std::string vchPubKey(pubkey.begin(), pubkey.end()); std::string strMessage = vinWinningMasternode.prevout.ToString() + vinMasterNodeFrom.prevout.ToString() + boost::lexical_cast(nBlockHeight) + vchPubKey; std::string errorMessage = ""; if(!darkSendSigner.VerifyMessage(pubkey, vchSig, strMessage, errorMessage)){ - printf("dmcv - Got bad masternode address signature\n"); pfrom->Misbehaving(100); return false; } - printf("dmcv -sig ok\n"); - rank = darkSendPool.GetMasternodeRank(vinWinningMasternode, 1); if(rank >= 0){ - printf("dmcv -submitted vote\n"); darkSendPool.SubmitMasternodeVote(vinWinningMasternode, vinMasterNodeFrom, nBlockHeight); RelayDarkSendMasterNodeConsessusVote(vinWinningMasternode, vinMasterNodeFrom, nBlockHeight, vchSig); } else {