mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Only sync mempool from v0.15+ (proto 70216+) nodes (#3321)
Old nodes aren't able to relay DSTXes properly
This commit is contained in:
parent
829bde81e6
commit
a9560655b3
@ -208,7 +208,7 @@ void CMasternodeSync::ProcessTick(CConnman& connman)
|
|||||||
// INITIAL TIMEOUT
|
// INITIAL TIMEOUT
|
||||||
|
|
||||||
if(nCurrentAsset == MASTERNODE_SYNC_WAITING) {
|
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");
|
netfulfilledman.AddFulfilledRequest(pnode->addr, "mempool-sync");
|
||||||
connman.PushMessage(pnode, msgMaker.Make(NetMsgType::MEMPOOL));
|
connman.PushMessage(pnode, msgMaker.Make(NetMsgType::MEMPOOL));
|
||||||
LogPrintf("CMasternodeSync::ProcessTick -- nTick %d nCurrentAsset %d -- syncing mempool from peer=%d\n", nTick, nCurrentAsset, pnode->GetId());
|
LogPrintf("CMasternodeSync::ProcessTick -- nTick %d nCurrentAsset %d -- syncing mempool from peer=%d\n", nTick, nCurrentAsset, pnode->GetId());
|
||||||
|
Loading…
Reference in New Issue
Block a user