From 55e468832a25c8951ade4e415187811510dfe32d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 25 Sep 2025 15:51:20 -0700 Subject: [PATCH] server: use MaxStandardTxVersion from mempool policy In this commit, we replace the hardcoded transaction version limit of 2 with the MaxStandardTxVersion constant from the mempool package. This change ensures the server configuration stays synchronized with the mempool policy definition and enables v3 transaction support throughout the system. --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 40755c8e..a10fd1a4 100644 --- a/server.go +++ b/server.go @@ -2973,7 +2973,7 @@ func newServer(listenAddrs, agentBlacklist, agentWhitelist []string, MaxOrphanTxSize: defaultMaxOrphanTxSize, MaxSigOpCostPerTx: blockchain.MaxBlockSigOpsCost / 4, MinRelayTxFee: cfg.minRelayTxFee, - MaxTxVersion: 2, + MaxTxVersion: mempool.MaxStandardTxVersion, RejectReplacement: cfg.RejectReplacement, }, ChainParams: chainParams,