mirror of
https://github.com/btcsuite/btcd.git
synced 2026-08-13 12:32:51 +02:00
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:
parent
667893389c
commit
55e468832a
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue