From 43a2feb0952bb646cd6e2a0d62beca096f903cd4 Mon Sep 17 00:00:00 2001 From: hans-crypto <108269257+hans-crypto@users.noreply.github.com> Date: Fri, 8 May 2026 15:14:13 +0200 Subject: [PATCH] policy: raise MAX_STANDARD_TX_WEIGHT toward consensus Raises MAX_STANDARD_TX_WEIGHT from 400000 (100 kvB) to 4000000 (consensus block-weight limit). Lets Libre Relay propagate the class of consensus-valid transactions that miners are already including via out-of-band submission paths. --- src/policy/policy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/policy/policy.h b/src/policy/policy.h index 23993dd705e5..40b2be41013d 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -31,7 +31,7 @@ static constexpr unsigned int MINIMUM_BLOCK_RESERVED_WEIGHT{2000}; /** Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by mining code **/ static constexpr unsigned int DEFAULT_BLOCK_MIN_TX_FEE{1}; /** The maximum weight for transactions we're willing to relay/mine */ -static constexpr int32_t MAX_STANDARD_TX_WEIGHT{400000}; +static constexpr int32_t MAX_STANDARD_TX_WEIGHT{4000000}; /** The minimum non-witness size for transactions we're willing to relay/mine: one larger than 64 */ static constexpr unsigned int MIN_STANDARD_TX_NONWITNESS_SIZE{65}; /** Maximum number of signature check operations in an IsStandard() P2SH script */