Skip to content
Open
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
521a8e1
test: sort p2p messages list in p2p.py
knst Mar 18, 2025
775114e
test: removed on_feefilter that has never been implemented for Dash
knst Mar 18, 2025
fbf89d6
feat!: add new protocol version PLATFORM_BAN_VERSION = 70236
knst Mar 17, 2025
2cd44f0
feat!: implementation of Platform PoSe Ban p2p message
knst Mar 11, 2025
361991f
test: add platforban message to test framework
knst Mar 17, 2025
2dd8026
test: functional test p2p_platform_ban.py
knst Mar 17, 2025
f316bf9
fix: add missing LOCK for m_platform_ban
knst May 6, 2025
9b6597e
fix: add list of valid mns for mine_quorum helper in p2p_platform_ban.py
knst May 7, 2025
00e047d
fix: bump version in masternode meta store
knst Aug 15, 2025
24797be
refactor: use std::move to make a copy of PlatformBan message
knst Aug 18, 2025
7d39124
refactor: use LRU cache instead map to limit size of seen platform ba…
knst Aug 18, 2025
c739f3a
refactor: fixes based on code review and better documenting of classes
knst Aug 18, 2025
e73e620
refactor: rename argument name from from to node
knst Aug 19, 2025
497a04c
refactor: rename argument name from from to node II
knst Aug 19, 2025
853e9c8
refactor: rename day_of_blocks to PLATFORM_BAN_WINDOW_BLOCKS
knst Aug 19, 2025
6e39350
fix: add missing call of EraseObjectRequest for platform ban p2p message
knst Aug 19, 2025
71825d1
refactor: let PostProcessMessage do the job
knst Aug 19, 2025
e0d6327
refactor: let PostProcessMessage do the job II
knst Aug 19, 2025
e8b01f4
fix: return ret instead {}, missing usage
knst Aug 19, 2025
4221644
fix: misusing m_inventory for ProcessMessageRet
knst Aug 19, 2025
c687022
fix: enforce quorum hash while validation platform ban p2p message
knst Aug 19, 2025
c191c53
fix: no flipping ban/unban if it's the same height for p2p message fo…
knst Aug 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/masternode/meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ class CMasternodeMetaInfo
bool SetPlatformBan(bool is_banned, int height)
{
LOCK(cs);
if (height <= m_platform_ban_updated) {
return false;
}
if (height == m_platform_ban_updated && !is_banned) {
if (height < m_platform_ban_updated) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no flipping ban/unban if it's the same height

but without = it will be flipping for the same height...

return false;
}
m_platform_ban = is_banned;
Expand Down
Loading