From 94b362ceab12bd7fb2edd3973b9f64c256d76315 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Tue, 18 Mar 2025 19:21:03 +0700 Subject: [PATCH 01/23] test: removed on_feefilter that has never been implemented for Dash --- test/functional/test_framework/p2p.py | 1 - 1 file changed, 1 deletion(-) diff --git a/test/functional/test_framework/p2p.py b/test/functional/test_framework/p2p.py index b56ef5ddc419..98a7981dc24d 100755 --- a/test/functional/test_framework/p2p.py +++ b/test/functional/test_framework/p2p.py @@ -578,7 +578,6 @@ def on_cfcheckpt(self, message): pass def on_cfheaders(self, message): pass def on_cfilter(self, message): pass def on_cmpctblock(self, message): pass - def on_feefilter(self, message): pass def on_filteradd(self, message): pass def on_filterclear(self, message): pass def on_filterload(self, message): pass From 2322929ca3be6ceb3add6474a561a1bf431221b6 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Mon, 17 Mar 2025 14:14:47 +0700 Subject: [PATCH 02/23] feat!: add new protocol version PLATFORM_BAN_VERSION = 70236 --- src/version.h | 8 ++++++-- test/functional/test_framework/p2p.py | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/version.h b/src/version.h index 025c3ea7beb6..4364d77b6400 100644 --- a/src/version.h +++ b/src/version.h @@ -11,7 +11,7 @@ */ -static const int PROTOCOL_VERSION = 70237; +static const int PROTOCOL_VERSION = 70238; //! initial proto version, to be increased after version/verack negotiation static const int INIT_PROTO_VERSION = 209; @@ -20,7 +20,7 @@ static const int INIT_PROTO_VERSION = 209; static const int MIN_PEER_PROTO_VERSION = 70216; //! minimum proto version of masternode to accept in DKGs -static const int MIN_MASTERNODE_PROTO_VERSION = 70237; +static const int MIN_MASTERNODE_PROTO_VERSION = 70238; //! protocol version is included in MNAUTH starting with this version static const int MNAUTH_NODE_VER_VERSION = 70218; @@ -64,9 +64,13 @@ static const int INCREASE_MAX_HEADERS2_VERSION = 70235; //! Behavior of QRINFO is changed in this protocol version static const int EFFICIENT_QRINFO_VERSION = 70236; + //! cycleHash in isdlock message switched to using quorum's base block in this version static const int ISDLOCK_CYCLEHASH_UPDATE_VERSION = 70237; +//! Introduced new p2p message platform pose BAN +static const int PLATFORM_BAN_VERSION = 70238; + // Make sure that none of the values above collide with `ADDRV2_FORMAT`. #endif // BITCOIN_VERSION_H diff --git a/test/functional/test_framework/p2p.py b/test/functional/test_framework/p2p.py index 98a7981dc24d..c5d5fbfd398e 100755 --- a/test/functional/test_framework/p2p.py +++ b/test/functional/test_framework/p2p.py @@ -99,8 +99,8 @@ # The minimum P2P version that this test framework supports MIN_P2P_VERSION_SUPPORTED = 60001 # The P2P version that this test framework implements and sends in its `version` message -# Version 70237 switched cycleHash in isdlock message to using quorum's base block -P2P_VERSION = 70237 +# Version 70238 introduced platform PoSe ban (dip-0031) +P2P_VERSION = 70238 # The services that this test framework offers in its `version` message P2P_SERVICES = NODE_NETWORK | NODE_HEADERS_COMPRESSED # The P2P user agent string that this test framework sends in its `version` message From 0f80a0285c05adc075638714b9c661c3ff60d342 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Tue, 11 Mar 2025 14:21:40 +0700 Subject: [PATCH 03/23] feat!: implementation of Platform PoSe Ban p2p message --- src/evo/deterministicmns.cpp | 20 +++++++- src/evo/deterministicmns.h | 7 ++- src/llmq/dkgsession.cpp | 8 +++- src/masternode/meta.cpp | 25 ++++++++++ src/masternode/meta.h | 78 +++++++++++++++++++++++++++---- src/net_processing.cpp | 90 +++++++++++++++++++++++++++++++++++- src/node/chainstate.cpp | 2 +- src/protocol.cpp | 6 ++- src/protocol.h | 2 + 9 files changed, 220 insertions(+), 18 deletions(-) diff --git a/src/evo/deterministicmns.cpp b/src/evo/deterministicmns.cpp index 08468ca9c5b9..e9aa068ab97a 100644 --- a/src/evo/deterministicmns.cpp +++ b/src/evo/deterministicmns.cpp @@ -9,12 +9,13 @@ #include #include #include -#include #include #include #include #include +#include +#include #include #include #include