From 2860d230d8eb29b981894143426a9f0c6b05a953 Mon Sep 17 00:00:00 2001 From: Pasta Date: Thu, 9 Jul 2026 16:34:48 -0500 Subject: [PATCH 01/35] consensus: add shared collateral template script and new special tx types Adds the 7-byte shared masternode collateral template script (0x04 "DSHC" OP_DROP OP_TRUE, hex 04445348437551) with exact-match helpers, and reserves special transaction types 10 (ProDisTx), 11 (ProUpShareTx) and 12 (ProUpSharedRegTx) for the decentralized masternode shares DIP. The new types are whitelisted in ContextualCheckTransaction unconditionally, matching the asset lock/unlock pattern: pre-activation rejection happens inside the per-type check functions, which gate on v24. Co-Authored-By: Claude Fable 5 --- src/Makefile.am | 1 + src/evo/sharedcollateral.h | 33 +++++++++++++++++++++++++++++++++ src/primitives/transaction.h | 3 +++ src/validation.cpp | 5 ++++- 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 src/evo/sharedcollateral.h diff --git a/src/Makefile.am b/src/Makefile.am index c5b08a2e17f7..f3fd8b46094d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -233,6 +233,7 @@ BITCOIN_CORE_H = \ evo/netinfo.h \ evo/providertx.h \ evo/providertx_service.h \ + evo/sharedcollateral.h \ evo/simplifiedmns.h \ evo/smldiff.h \ evo/specialtx.h \ diff --git a/src/evo/sharedcollateral.h b/src/evo/sharedcollateral.h new file mode 100644 index 000000000000..6730fe2de7ec --- /dev/null +++ b/src/evo/sharedcollateral.h @@ -0,0 +1,33 @@ +// Copyright (c) 2026 The Dash Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_EVO_SHAREDCOLLATERAL_H +#define BITCOIN_EVO_SHAREDCOLLATERAL_H + +#include