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.
This commit is contained in:
Olaoluwa Osuntokun 2025-09-25 15:51:20 -07:00
parent 667893389c
commit 55e468832a
No known key found for this signature in database
GPG key ID: 90525F7DEEE0AD86

View file

@ -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,