From dd1c1b7d1c2a0a1a8af60535d090c1509337dd3e Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 23 Feb 2015 23:12:33 +0300 Subject: [PATCH] CMasternodeMan - masternode manager class - part3 - connect ProcessMessage from mnodeman(rpc still broken) --- src/main.cpp | 2 +- src/masternode.cpp | 2 +- src/masternode.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 904149648d..2bcc01c02b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4825,7 +4825,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) { //probably one the extensions ProcessMessageDarksend(pfrom, strCommand, vRecv); - ProcessMessageMasternode(pfrom, strCommand, vRecv); + mnodeman.ProcessMessage(pfrom, strCommand, vRecv); ProcessMessageInstantX(pfrom, strCommand, vRecv); ProcessSpork(pfrom, strCommand, vRecv); } diff --git a/src/masternode.cpp b/src/masternode.cpp index e542293933..436d30eaef 100644 --- a/src/masternode.cpp +++ b/src/masternode.cpp @@ -15,7 +15,7 @@ map mapSeenMasternodeScanningErrors; // cache block hashes as we calculate them std::map mapCacheBlockHashes; -void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) +void ProcessMessageMasternodePayments(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) { if (strCommand == "mnget") { //Masternode Payments Request Sync if(fLiteMode) return; //disable all darksend/masternode related functionality diff --git a/src/masternode.h b/src/masternode.h index c1b6a3cbd6..5dc57c2949 100644 --- a/src/masternode.h +++ b/src/masternode.h @@ -51,7 +51,7 @@ enum masternodeState { MASTERNODE_REMOVE = 4 }; -void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream& vRecv); +void ProcessMessageMasternodePayments(CNode* pfrom, std::string& strCommand, CDataStream& vRecv); // // The Masternode Class. For managing the darksend process. It contains the input of the 1000DRK, signature to prove