mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
Few fixes for processing extra messages:
- call ProcessMessageMasternodePayments on ProcessBlock (lost after moving mnodeman functionality) - do not process extra functionality messages (DS, IX, spork) on initial download / reindex
This commit is contained in:
parent
38509c5433
commit
1ded1b9ec2
@ -51,6 +51,7 @@ int RequestedMasterNodeList = 0;
|
|||||||
void ProcessMessageDarksend(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
|
void ProcessMessageDarksend(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
|
||||||
{
|
{
|
||||||
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
||||||
|
if(IsInitialBlockDownload()) return;
|
||||||
|
|
||||||
if (strCommand == "dsf") { //DarkSend Final tx
|
if (strCommand == "dsf") { //DarkSend Final tx
|
||||||
if (pfrom->nVersion < darkSendPool.MIN_PEER_PROTO_VERSION) {
|
if (pfrom->nVersion < darkSendPool.MIN_PEER_PROTO_VERSION) {
|
||||||
|
@ -37,6 +37,7 @@ void ProcessMessageInstantX(CNode* pfrom, std::string& strCommand, CDataStream&
|
|||||||
{
|
{
|
||||||
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
||||||
if(!IsSporkActive(SPORK_2_INSTANTX)) return;
|
if(!IsSporkActive(SPORK_2_INSTANTX)) return;
|
||||||
|
if(IsInitialBlockDownload()) return;
|
||||||
|
|
||||||
if (strCommand == "txlreq")
|
if (strCommand == "txlreq")
|
||||||
{
|
{
|
||||||
|
@ -4826,6 +4826,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
|||||||
//probably one the extensions
|
//probably one the extensions
|
||||||
ProcessMessageDarksend(pfrom, strCommand, vRecv);
|
ProcessMessageDarksend(pfrom, strCommand, vRecv);
|
||||||
mnodeman.ProcessMessage(pfrom, strCommand, vRecv);
|
mnodeman.ProcessMessage(pfrom, strCommand, vRecv);
|
||||||
|
ProcessMessageMasternodePayments(pfrom, strCommand, vRecv);
|
||||||
ProcessMessageInstantX(pfrom, strCommand, vRecv);
|
ProcessMessageInstantX(pfrom, strCommand, vRecv);
|
||||||
ProcessSpork(pfrom, strCommand, vRecv);
|
ProcessSpork(pfrom, strCommand, vRecv);
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,8 @@ std::map<int64_t, uint256> mapCacheBlockHashes;
|
|||||||
|
|
||||||
void ProcessMessageMasternodePayments(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
|
void ProcessMessageMasternodePayments(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
|
||||||
{
|
{
|
||||||
|
if(IsInitialBlockDownload()) return;
|
||||||
|
|
||||||
if (strCommand == "mnget") { //Masternode Payments Request Sync
|
if (strCommand == "mnget") { //Masternode Payments Request Sync
|
||||||
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user