Skip to content

Commit 3582cec

Browse files
committed
Only sync mempool from v0.15+ (proto 70216+) nodes (dashpay#3321)
Old nodes aren't able to relay DSTXes properly
1 parent 561027d commit 3582cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/masternode/masternode-sync.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void CMasternodeSync::ProcessTick(CConnman& connman)
208208
// INITIAL TIMEOUT
209209

210210
if(nCurrentAsset == MASTERNODE_SYNC_WAITING) {
211-
if(!pnode->fInbound && gArgs.GetBoolArg("-syncmempool", DEFAULT_SYNC_MEMPOOL) && !netfulfilledman.HasFulfilledRequest(pnode->addr, "mempool-sync")) {
211+
if(pnode->nVersion >= 70216 && !pnode->fInbound && gArgs.GetBoolArg("-syncmempool", DEFAULT_SYNC_MEMPOOL) && !netfulfilledman.HasFulfilledRequest(pnode->addr, "mempool-sync")) {
212212
netfulfilledman.AddFulfilledRequest(pnode->addr, "mempool-sync");
213213
connman.PushMessage(pnode, msgMaker.Make(NetMsgType::MEMPOOL));
214214
LogPrintf("CMasternodeSync::ProcessTick -- nTick %d nCurrentAsset %d -- syncing mempool from peer=%d\n", nTick, nCurrentAsset, pnode->GetId());

0 commit comments

Comments
 (0)