github.com/btcsuite/btcd breaking changes
Updated December 4, 2026
On this page
Latest version v0.27.0, released October 21, 2026.
Its v0.22.0-beta release requires Go 1.14 or later. Go end of life dates.
github.com/btcsuite/btcd v0.27.0 breaking changes
- Renamed
github.com/btcsuite/btcd/mempool.MockTxMempool
Use github.com/btcsuite/btcd/mempool/mempooltest.MockTxMempool instead. pkg.go.dev - Behavior changed
Transactions with an empty P2WSH witness, and SIGHASH_SINGLE signing without a matching output, are now rejected. Code that relied on these being accepted must handle the error. github.com
github.com/btcsuite/btcd v0.26.0 breaking changes
- Removed
github.com/btcsuite/btcd/chaincfg
github.com/btcsuite/btcd/chaincfg was removed in github.com/btcsuite/btcd v0.26.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/txscript
github.com/btcsuite/btcd/txscript was removed in github.com/btcsuite/btcd v0.26.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/wire
github.com/btcsuite/btcd/wire was removed in github.com/btcsuite/btcd v0.26.0 pkg.go.dev - Behavior changed
chaincfg.chainhash
Hash string parsing now enforces stricter validation, so previously accepted inputs may be rejected. github.com - Behavior changed
netsync
Sync peers on regtest and simnet must now advertise block-serving services or they are not used for sync. github.com - Behavior changed
txscript
Scripts containing OP_CODESEPARATOR in unexecuted branches for non-segwit inputs are now rejected. github.com - Behavior changed
wire
Messages carrying extra unconsumed payload bytes are rejected instead of accepted, so code relying on lenient parsing may see errors. github.com
github.com/btcsuite/btcd v0.25.0 breaking changes
- Removed
github.com/btcsuite/btcd/peer.MessageListeners.OnAlert
github.com/btcsuite/btcd/peer.MessageListeners.OnAlert was removed in github.com/btcsuite/btcd v0.25.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/wire.Alert
github.com/btcsuite/btcd/wire.Alert was removed in github.com/btcsuite/btcd v0.25.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/wire.CmdAlert
github.com/btcsuite/btcd/wire.CmdAlert was removed in github.com/btcsuite/btcd v0.25.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/wire.MsgAlert
github.com/btcsuite/btcd/wire.MsgAlert was removed in github.com/btcsuite/btcd v0.25.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/wire.NewAlert
github.com/btcsuite/btcd/wire.NewAlert was removed in github.com/btcsuite/btcd v0.25.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/wire.NewAlertFromPayload
github.com/btcsuite/btcd/wire.NewAlertFromPayload was removed in github.com/btcsuite/btcd v0.25.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/wire.NewMsgAlert
github.com/btcsuite/btcd/wire.NewMsgAlert was removed in github.com/btcsuite/btcd v0.25.0 pkg.go.dev - Signature changed
github.com/btcsuite/btcd/btcjson.GetNetworkInfoResult.Warnings
Was Warnings string; now Warnings StringOrArray. pkg.go.dev - Signature changed
github.com/btcsuite/btcd/connmgr.ConnManager.Disconnect
Was func Disconnect(uint64); now func Disconnect(uint64, ...ConnOption). pkg.go.dev - Signature changed
SignCompact
SignCompact no longer returns an error, so callers must drop the error return value from their calls. github.com
github.com/btcsuite/btcd v0.24.0 breaking changes
- Behavior changed
BTC amount formatting now includes trailing zeroes, so code that parses or compares the formatted output may change. github.com - Behavior changed
Difficulty retargeting is now disabled for the regtest network, which changes block difficulty behavior for regtest users. github.com - Behavior changed
Schnorr signature verification now follows the BIP-340 standard, so signatures previously accepted may now be rejected. github.com - Behavior changed
chainhash.Hash
Hash JSON marshaling now produces a string, so code that depends on the previous JSON output must be updated. github.com - Signature changed
github.com/btcsuite/btcd/blockchain.HashMerkleBranches
Was func HashMerkleBranches(*chainhash.Hash, *chainhash.Hash) *chainhash.Hash; now func HashMerkleBranches(*chainhash.Hash, *chainhash.Hash) chainhash.Hash. pkg.go.dev - Signature changed
github.com/btcsuite/btcd/txscript.NewScriptBuilder
Was func NewScriptBuilder() *ScriptBuilder; now func NewScriptBuilder(...ScriptBuilderOpt) *ScriptBuilder. pkg.go.dev
github.com/btcsuite/btcd v0.23.0 breaking changes
- Removed
github.com/btcsuite/btcd/btcec
github.com/btcsuite/btcd/btcec was removed in github.com/btcsuite/btcd v0.23.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/chaincfg.ConsensusDeployment.ExpireTime
github.com/btcsuite/btcd/chaincfg.ConsensusDeployment.ExpireTime was removed in github.com/btcsuite/btcd v0.23.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/chaincfg.ConsensusDeployment.StartTime
github.com/btcsuite/btcd/chaincfg.ConsensusDeployment.StartTime was removed in github.com/btcsuite/btcd v0.23.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/txscript.OP_UNKNOWN186
github.com/btcsuite/btcd/txscript.OP_UNKNOWN186 was removed in github.com/btcsuite/btcd v0.23.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/txscript.TxSigHashes.HashOutputs
github.com/btcsuite/btcd/txscript.TxSigHashes.HashOutputs was removed in github.com/btcsuite/btcd v0.23.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/txscript.TxSigHashes.HashPrevOuts
github.com/btcsuite/btcd/txscript.TxSigHashes.HashPrevOuts was removed in github.com/btcsuite/btcd v0.23.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/txscript.TxSigHashes.HashSequence
github.com/btcsuite/btcd/txscript.TxSigHashes.HashSequence was removed in github.com/btcsuite/btcd v0.23.0 pkg.go.dev - Signature changed
github.com/btcsuite/btcd/addrmgr.AddrManager.AddAddress
Was func AddAddress(*wire.NetAddress, *wire.NetAddress); now func AddAddress(*wire.NetAddressV2, *wire.NetAddressV2). pkg.go.dev - Signature changed
github.com/btcsuite/btcd/addrmgr.AddrManager.AddAddresses
Was func AddAddresses([]*wire.NetAddress, *wire.NetAddress); now func AddAddresses([]*wire.NetAddressV2, *wire.NetAddressV2). pkg.go.dev - Signature changed
github.com/btcsuite/btcd/addrmgr.AddrManager.AddLocalAddress
Was func AddLocalAddress(*wire.NetAddress, AddressPriority) error; now func AddLocalAddress(*wire.NetAddressV2, AddressPriority) error. pkg.go.dev
And 161 more in this version. Sign up to see every change
github.com/btcsuite/btcd v0.22.1 breaking changes
- Removed
github.com/btcsuite/btcd/addrmgr.AddrManager.LocalAddresses
github.com/btcsuite/btcd/addrmgr.AddrManager.LocalAddresses was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev - Removed
github.com/btcsuite/btcd/addrmgr.LocalAddress
github.com/btcsuite/btcd/addrmgr.LocalAddress was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev - Removed
github.com/btcsuite/btcd/bchec
github.com/btcsuite/btcd/bchec was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev - Removed
github.com/btcsuite/btcd/bchrpc
github.com/btcsuite/btcd/bchrpc was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev - Removed
github.com/btcsuite/btcd/blockchain.BehaviorFlags.HasFlag
github.com/btcsuite/btcd/blockchain.BehaviorFlags.HasFlag was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev - Removed
github.com/btcsuite/btcd/blockchain.BFMagneticAnomaly
github.com/btcsuite/btcd/blockchain.BFMagneticAnomaly was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev - Removed
github.com/btcsuite/btcd/blockchain.BFNoDupBlockCheck
github.com/btcsuite/btcd/blockchain.BFNoDupBlockCheck was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev - Removed
github.com/btcsuite/btcd/blockchain.BlockChain.AddHeader
github.com/btcsuite/btcd/blockchain.BlockChain.AddHeader was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev - Removed
github.com/btcsuite/btcd/blockchain.BlockChain.CachedStateSize
github.com/btcsuite/btcd/blockchain.BlockChain.CachedStateSize was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev - Removed
github.com/btcsuite/btcd/blockchain.BlockChain.CheckBlockHeaderContext
github.com/btcsuite/btcd/blockchain.BlockChain.CheckBlockHeaderContext was removed in github.com/btcsuite/btcd v0.22.1 pkg.go.dev
And 427 more in this version. Sign up to see every change
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
github.com/btcsuite/btcd v0.22.0-beta breaking changes
- Behavior changed
The package now states Go 1.14 as its minimum supported Go version. Projects on older Go toolchains must upgrade. github.com - Behavior changed
createrawtransaction
The rpcserver now uses a different monetary unit for createrawtransaction. Code that passed amounts tuned to the old unit must be checked. github.com
github.com/btcsuite/btcd v0.21.0-beta breaking changes
- Removed
btcjson.GetBlockCmd.Verbose
The boolean Verbose field was replaced by the integer Verbosity field. Code that sets Verbose must switch to Verbosity. github.com - Removed
btcjson.GetBlockCmd.VerboseTx
The boolean VerboseTx field was replaced by the integer Verbosity field. Code that sets VerboseTx must switch to Verbosity. github.com
github.com/btcsuite/btcd v0.17.0 breaking changes
- Removed
github.com/btcsuite/btcd/bchrpc/pb.Block_TransactionData.XXX_DiscardUnknown
github.com/btcsuite/btcd/bchrpc/pb.Block_TransactionData.XXX_DiscardUnknown was removed in github.com/btcsuite/btcd v0.17.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/bchrpc/pb.Block_TransactionData.XXX_Marshal
github.com/btcsuite/btcd/bchrpc/pb.Block_TransactionData.XXX_Marshal was removed in github.com/btcsuite/btcd v0.17.0 pkg.go.dev
And 393 more in this version.
github.com/btcsuite/btcd v0.16.0 breaking changes
- Removed
github.com/btcsuite/btcd/mining.CoinbaseFlags
github.com/btcsuite/btcd/mining.CoinbaseFlags was removed in github.com/btcsuite/btcd v0.16.0 pkg.go.dev - Removed
github.com/btcsuite/btcd/txscript.OP_UNKNOWN188
github.com/btcsuite/btcd/txscript.OP_UNKNOWN188 was removed in github.com/btcsuite/btcd v0.16.0 pkg.go.dev
And 1 more in this version.
github.com/btcsuite/btcd v0.15.0 breaking changes
- Removed
github.com/btcsuite/btcd/blockchain/fullblocktests.GenerateBlocksWithSchnorrSigs
github.com/btcsuite/btcd/blockchain/fullblocktests.GenerateBlocksWithSchnorrSigs was removed in github.com/btcsuite/btcd v0.15.0 pkg.go.dev
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.