From a9560655b3ce9a6997c0598a965a22170e6e7a4c Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 3 Feb 2020 21:18:02 +0300 Subject: [PATCH] Only sync mempool from v0.15+ (proto 70216+) nodes (#3321) Old nodes aren't able to relay DSTXes properly --- src/masternode/masternode-sync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/masternode/masternode-sync.cpp b/src/masternode/masternode-sync.cpp index a6b0778d5..f80b9fd8a 100644 --- a/src/masternode/masternode-sync.cpp +++ b/src/masternode/masternode-sync.cpp @@ -208,7 +208,7 @@ void CMasternodeSync::ProcessTick(CConnman& connman) // INITIAL TIMEOUT if(nCurrentAsset == MASTERNODE_SYNC_WAITING) { - if(!pnode->fInbound && gArgs.GetBoolArg("-syncmempool", DEFAULT_SYNC_MEMPOOL) && !netfulfilledman.HasFulfilledRequest(pnode->addr, "mempool-sync")) { + if(pnode->nVersion >= 70216 && !pnode->fInbound && gArgs.GetBoolArg("-syncmempool", DEFAULT_SYNC_MEMPOOL) && !netfulfilledman.HasFulfilledRequest(pnode->addr, "mempool-sync")) { netfulfilledman.AddFulfilledRequest(pnode->addr, "mempool-sync"); connman.PushMessage(pnode, msgMaker.Make(NetMsgType::MEMPOOL)); LogPrintf("CMasternodeSync::ProcessTick -- nTick %d nCurrentAsset %d -- syncing mempool from peer=%d\n", nTick, nCurrentAsset, pnode->GetId());