Skip to content

Commit af6f2cc

Browse files
committed
fixup: prevent flipping "is banned" for the equal height
Consensus leans to ban it
1 parent efc3a3d commit af6f2cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/masternode/meta.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ class CMasternodeMetaInfo
107107
if (height < m_platform_ban_updated) {
108108
return false;
109109
}
110+
if (height == m_platform_ban_updated && !is_banned) {
111+
return false;
112+
}
110113
m_platform_ban = is_banned;
111114
m_platform_ban_updated = height;
112115
return true;

0 commit comments

Comments
 (0)