From a9385e39116adc8b892435681a47ce0c8ae5f079 Mon Sep 17 00:00:00 2001 From: Pasta Date: Thu, 9 Jul 2026 16:34:48 -0500 Subject: [PATCH 01/21] 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 fb1ffde2529a..3013e6409d10 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -232,6 +232,7 @@ BITCOIN_CORE_H = \ evo/mnhftx.h \ evo/netinfo.h \ evo/providertx.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