mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Fix mnp relay bug (#1700)
* relay ping for nodes in ENABLED/EXPIRED/WATCHDOG_EXPIRED state only, skip everyone else * typo
This commit is contained in:
parent
673e161d5d
commit
dfb8dbbf61
@ -810,8 +810,10 @@ bool CMasternodePing::CheckAndUpdate(CMasternode* pmn, bool fFromNewBroadcast, i
|
||||
mnodeman.mapSeenMasternodeBroadcast[hash].second.lastPing = *this;
|
||||
}
|
||||
|
||||
pmn->Check(true); // force update, ignoring cache
|
||||
if (!pmn->IsEnabled()) return false;
|
||||
// force update, ignoring cache
|
||||
pmn->Check(true);
|
||||
// relay ping for nodes in ENABLED/EXPIRED/WATCHDOG_EXPIRED state only, skip everyone else
|
||||
if (!pmn->IsEnabled() && !pmn->IsExpired() && !pmn->IsWatchdogExpired()) return false;
|
||||
|
||||
LogPrint("masternode", "CMasternodePing::CheckAndUpdate -- Masternode ping acceepted and relayed, masternode=%s\n", vin.prevout.ToStringShort());
|
||||
Relay(connman);
|
||||
|
Loading…
Reference in New Issue
Block a user