Skip to content

Commit efc3a3d

Browse files
committed
fix: no flipping ban/unban if it's the same height for p2p message for node revive
1 parent 0e0e1ce commit efc3a3d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/masternode/meta.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ class CMasternodeMetaInfo
104104
bool SetPlatformBan(bool is_banned, int height)
105105
{
106106
LOCK(cs);
107-
if (height <= m_platform_ban_updated) {
108-
return false;
109-
}
110-
if (height == m_platform_ban_updated && !is_banned) {
107+
if (height < m_platform_ban_updated) {
111108
return false;
112109
}
113110
m_platform_ban = is_banned;

0 commit comments

Comments
 (0)