---
title: "github.com/btcsuite/btcd v0.27.0 Breaking Changes"
description: "What each github.com/btcsuite/btcd release removed, renamed or changed: 1,036 breaking changes in 11 versions on Go modules, each with its source."
canonical_url: https://since.dev/packages/go/github.com/btcsuite/btcd
last_updated: 2026-12-04
---

# github.com/btcsuite/btcd breaking changes

github.com/btcsuite/btcd v0.27.0 (October 21, 2026) is its newest release with breaking changes, 2 of them. The first: Renamed github.com/btcsuite/btcd/mempool.MockTxMempool. Every breaking API change we have recorded in github.com/btcsuite/btcd on Go modules: 1,036 breaking changes in 11 versions. Below, its 11 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

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](https://since.dev/calendar/go.md).

- From [v0.15.0](#v-v0-15-0) to [v0.27.0](#v-v0-27-0): 1,035 breaking changes in 10 versions.

## github.com/btcsuite/btcd v0.27.0 breaking changes

github.com/btcsuite/btcd v0.27.0, released October 21, 2026: 2 breaking changes.

- **Renamed** `github.com/btcsuite/btcd/mempool.MockTxMempool`  

Use github.com/btcsuite/btcd/mempool/mempooltest.MockTxMempool instead. [pkg.go.dev](https://pkg.go.dev/github.com/btcsuite/btcd@v0.27.0)
- **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](https://github.com/btcsuite/btcd/releases/tag/v0.27.0)

## github.com/btcsuite/btcd v0.26.0 breaking changes

github.com/btcsuite/btcd v0.26.0, released June 18, 2026: 7 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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.26.0)
- **Removed** `github.com/btcsuite/btcd/txscript`  

github.com/btcsuite/btcd/txscript was removed in github.com/btcsuite/btcd v0.26.0 [pkg.go.dev](https://pkg.go.dev/github.com/btcsuite/btcd@v0.26.0)
- **Removed** `github.com/btcsuite/btcd/wire`  

github.com/btcsuite/btcd/wire was removed in github.com/btcsuite/btcd v0.26.0 [pkg.go.dev](https://pkg.go.dev/github.com/btcsuite/btcd@v0.26.0)
- **Behavior changed** `chaincfg.chainhash`  

Hash string parsing now enforces stricter validation, so previously accepted inputs may be rejected. [github.com](https://github.com/btcsuite/btcd/releases/tag/v0.26.0)
- **Behavior changed** `netsync`  

Sync peers on regtest and simnet must now advertise block-serving services or they are not used for sync. [github.com](https://github.com/btcsuite/btcd/releases/tag/v0.26.0)
- **Behavior changed** `txscript`  

Scripts containing OP_CODESEPARATOR in unexecuted branches for non-segwit inputs are now rejected. [github.com](https://github.com/btcsuite/btcd/releases/tag/v0.26.0)
- **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](https://github.com/btcsuite/btcd/releases/tag/v0.26.0)

## github.com/btcsuite/btcd v0.25.0 breaking changes

github.com/btcsuite/btcd v0.25.0, released November 4, 2025: 10 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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.25.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.25.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.25.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.25.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.25.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.25.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.25.0)
- **Signature changed** `github.com/btcsuite/btcd/btcjson.GetNetworkInfoResult.Warnings`  

Was Warnings string; now Warnings StringOrArray. [pkg.go.dev](https://pkg.go.dev/github.com/btcsuite/btcd@v0.25.0)
- **Signature changed** `github.com/btcsuite/btcd/connmgr.ConnManager.Disconnect`  

Was func Disconnect(uint64); now func Disconnect(uint64, ...ConnOption). [pkg.go.dev](https://pkg.go.dev/github.com/btcsuite/btcd@v0.25.0)
- **Signature changed** `SignCompact`  

SignCompact no longer returns an error, so callers must drop the error return value from their calls. [github.com](https://github.com/btcsuite/btcd/releases/tag/v0.25.0)

## github.com/btcsuite/btcd v0.24.0 breaking changes

github.com/btcsuite/btcd v0.24.0, released December 31, 2023: 6 breaking changes.

- **Behavior changed**  

BTC amount formatting now includes trailing zeroes, so code that parses or compares the formatted output may change. [github.com](https://github.com/btcsuite/btcd/releases/tag/v0.24.0)
- **Behavior changed**  

Difficulty retargeting is now disabled for the regtest network, which changes block difficulty behavior for regtest users. [github.com](https://github.com/btcsuite/btcd/releases/tag/v0.24.0)
- **Behavior changed**  

Schnorr signature verification now follows the BIP-340 standard, so signatures previously accepted may now be rejected. [github.com](https://github.com/btcsuite/btcd/releases/tag/v0.24.0)
- **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](https://github.com/btcsuite/btcd/releases/tag/v0.24.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.24.0)
- **Signature changed** `github.com/btcsuite/btcd/txscript.NewScriptBuilder`  

Was func NewScriptBuilder() \*ScriptBuilder; now func NewScriptBuilder(...ScriptBuilderOpt) \*ScriptBuilder. [pkg.go.dev](https://pkg.go.dev/github.com/btcsuite/btcd@v0.24.0)

## github.com/btcsuite/btcd v0.23.0 breaking changes

github.com/btcsuite/btcd v0.23.0, released June 2, 2022: 171 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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.23.0)

And 161 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## github.com/btcsuite/btcd v0.22.1 breaking changes

github.com/btcsuite/btcd v0.22.1, released April 28, 2022: 437 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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)
- **Removed** `github.com/btcsuite/btcd/bchec`  

github.com/btcsuite/btcd/bchec was removed in github.com/btcsuite/btcd v0.22.1 [pkg.go.dev](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)
- **Removed** `github.com/btcsuite/btcd/bchrpc`  

github.com/btcsuite/btcd/bchrpc was removed in github.com/btcsuite/btcd v0.22.1 [pkg.go.dev](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.22.1)

And 427 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Older versions

5 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### github.com/btcsuite/btcd v0.22.0-beta breaking changes

github.com/btcsuite/btcd v0.22.0-beta, released April 28, 2022: 2 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](https://github.com/btcsuite/btcd/releases/tag/v0.22.0-beta)
- **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](https://github.com/btcsuite/btcd/releases/tag/v0.22.0-beta)

### github.com/btcsuite/btcd v0.21.0-beta breaking changes

github.com/btcsuite/btcd v0.21.0-beta, released April 28, 2022: 2 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](https://github.com/btcsuite/btcd/releases/tag/v0.21.0-beta)
- **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](https://github.com/btcsuite/btcd/releases/tag/v0.21.0-beta)

### github.com/btcsuite/btcd v0.17.0 breaking changes

github.com/btcsuite/btcd v0.17.0, released January 11, 2022: 395 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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.17.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.17.0)

And 393 more in this version.

### github.com/btcsuite/btcd v0.16.0 breaking changes

github.com/btcsuite/btcd v0.16.0, released January 11, 2022: 3 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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.16.0)
- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.16.0)

And 1 more in this version.

### github.com/btcsuite/btcd v0.15.0 breaking changes

github.com/btcsuite/btcd v0.15.0, released January 11, 2022: 1 breaking change.

- **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](https://pkg.go.dev/github.com/btcsuite/btcd@v0.15.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
