No description
Find a file
Olaoluwa Osuntokun f799c4b2b0
Merge pull request #2544 from Lrifton92/fix/bech32-investigation
address: reject v2-v16 segwit addresses encoded with bech32 (BIP-350)
2026-07-21 17:15:34 -07:00
.gemini .gemini: add styleguide.md 2025-07-16 11:46:18 +00:00
.github ci: run rpctest integration tests 2026-05-30 16:47:18 +09:00
address address: reject v2-v16 segwit addresses encoded with bech32 2026-07-21 02:22:23 +02:00
addrmgr multi: use new v2 modules everywhere 2026-05-14 18:05:33 -07:00
blockchain blockchain/indexers: propagate index drop errors 2026-07-20 17:53:10 -05:00
btcec Merge pull request #2561 from Lrifton92/fix/schnorr-parse-s-range 2026-07-20 16:57:43 -05:00
btcjson btcjson: accept null in StringOrArray.UnmarshalJSON 2026-05-30 16:47:18 +09:00
btcutil Merge pull request #2545 from Lrifton92/fix/wif-private-key-range-validation 2026-07-20 18:52:27 -05:00
chaincfg multi: pin new v2 submodule tags and bump to v0.26.0-beta.rc1 2026-05-14 19:25:06 -07:00
chainhash multi: pin new v2 submodule tags and bump to v0.26.0-beta.rc1 2026-05-14 19:25:06 -07:00
cmd multi: use new v2 modules everywhere 2026-05-14 18:05:33 -07:00
connmgr server+connmgr: make outbound startup deterministic 2026-07-21 16:45:44 -07:00
database multi: use new v2 modules everywhere 2026-05-14 18:05:33 -07:00
docs multi: use new v2 modules everywhere 2026-05-14 18:05:33 -07:00
integration integration: stabilize pre-verack disconnect cycles 2026-07-21 16:59:33 -07:00
internal/inbound server+inbound: correct inbound admission accounting 2026-07-21 16:44:43 -07:00
limits multi: Run gofmt on the entire repository 2023-06-21 22:31:09 +09:00
mempool multi: use new v2 modules everywhere 2026-05-14 18:05:33 -07:00
mining multi: use new v2 modules everywhere 2026-05-14 18:05:33 -07:00
netsync netsync: avoid clock tick race in sync state test 2026-07-02 01:18:38 -05:00
ossec harden btcd on OpenBSD 2022-04-09 07:22:22 -04:00
peer integration: synchronize p2p lifecycle stress batches 2026-07-21 16:45:25 -07:00
psbt Merge pull request #2539 from 0xjc65eth/fix-2495-nil-taproot-leaf 2026-07-20 18:52:10 -05:00
release release: add darwin-arm64 to target binaries (#2173) 2024-04-22 15:30:25 -04:00
rpcclient Merge pull request #2551 from ellemouton/ellemouton/rpcclient-submitpackage 2026-06-17 11:09:57 -07:00
scripts gomod: run go mod tidy for all modules 2024-01-15 17:22:42 +08:00
txscript multi: pin new v2 submodule tags and bump to v0.26.0-beta.rc1 2026-05-14 19:25:06 -07:00
v2transport v2transport: restore responder handshake progress 2026-07-21 16:45:06 -07:00
wire wire: test v2 message trailing payload rejection 2026-06-26 12:17:37 -05:00
.gitignore multi: update make and CI goals with new packages 2026-05-14 18:05:33 -07:00
.golangci.yml golangci: add configuration file for linting 2025-08-05 18:39:30 +09:00
btcd.go main: add flag to write execution traces 2024-11-20 17:50:51 +09:00
CHANGES fix typos (#2100) 2024-03-25 09:44:25 -04:00
config.go config: reject non-positive maxpeers 2026-07-21 16:45:44 -07:00
config_test.go config: reject non-positive maxpeers 2026-07-21 16:45:44 -07:00
doc.go doc: correct comments 2023-12-20 11:41:55 -05:00
Dockerfile Dockerfile: update go base image 2025-08-20 10:29:16 +09:00
go.mod server: centralize inbound handshake admission 2026-07-18 00:17:55 -05:00
go.sum server: centralize inbound handshake admission 2026-07-18 00:17:55 -05:00
LICENSE Update license 2025-01-14 19:58:46 -08:00
log.go server: centralize inbound handshake admission 2026-07-18 00:17:55 -05:00
Makefile multi: update make and CI goals with new packages 2026-05-14 18:05:33 -07:00
params.go multi: use new v2 modules everywhere 2026-05-14 18:05:33 -07:00
README.md multi: bump Go toolchain to 1.25, build CI with 1.26.3 2026-05-14 17:32:02 -07:00
rpcadapters.go multi: use new v2 modules everywhere 2026-05-14 18:05:33 -07:00
rpcserver.go rpc: decode block proposals strictly 2026-06-26 12:17:37 -05:00
rpcserver_test.go rpc: test mempool accept trailing byte rejection 2026-06-26 12:17:37 -05:00
rpcserverhelp.go btcjson: add Warnings field to GetBlockChainInfoResult 2026-05-11 17:22:00 -07:00
rpcserverhelp_test.go Relicense to the btcsuite developers. 2015-05-01 12:00:56 -05:00
rpcwebsocket.go rpcwebsocket: fi linter complaint about unused functions 2026-05-14 18:05:33 -07:00
sample-btcd.conf config: reject non-positive maxpeers 2026-07-21 16:45:44 -07:00
SECURITY.md btcd: add SECURITY.md 2023-12-30 16:24:59 -08:00
server.go server+connmgr: make outbound startup deterministic 2026-07-21 16:45:44 -07:00
server_test.go server+connmgr: make outbound startup deterministic 2026-07-21 16:45:44 -07:00
service_windows.go fix typos (#2100) 2024-03-25 09:44:25 -04:00
signal.go btcd: Simplify shutdown signal handling logic. (#733) 2016-08-11 13:39:23 -05:00
signalsigterm.go multi: Run gofmt on the entire repository 2023-06-21 22:31:09 +09:00
upgrade.go multi: Simplify code per gosimple linter. 2016-11-03 13:00:35 -05:00
upnp.go chore: fix some comments 2024-08-09 16:51:11 +08:00
version.go version: bump to v0.26.0-beta for final release 2026-06-18 15:45:55 -07:00

btcd

Build Status Coverage Status ISC License GoDoc

btcd is an alternative full node bitcoin implementation written in Go (golang).

This project is currently under active development and is in a Beta state. It is extremely stable and has been in production use since October 2013.

It properly downloads, validates, and serves the block chain using the exact rules (including consensus bugs) for block acceptance as Bitcoin Core. We have taken great care to avoid btcd causing a fork to the block chain. It includes a full block validation testing framework which contains all of the 'official' block acceptance tests (and some additional ones) that is run on every pull request to help ensure it properly follows consensus. Also, it passes all of the JSON test data in the Bitcoin Core code.

It also properly relays newly mined blocks, maintains a transaction pool, and relays individual transactions that have not yet made it into a block. It ensures all individual transactions admitted to the pool follow the rules required by the block chain and also includes more strict checks which filter transactions based on miner requirements ("standard" transactions).

One key difference between btcd and Bitcoin Core is that btcd does NOT include wallet functionality and this was a very intentional design decision. See the blog entry here for more details. This means you can't actually make or receive payments directly with btcd. That functionality is provided by the btcwallet and Paymetheus (Windows-only) projects which are both under active development.

Requirements

Go 1.25 or newer.

Installation

https://github.com/btcsuite/btcd/releases

Linux/BSD/MacOSX/POSIX - Build from Source

  • Install Go according to the installation instructions here: http://golang.org/doc/install

  • Ensure Go was installed properly and is a supported version:

$ go version
$ go env GOROOT GOPATH

NOTE: The GOROOT and GOPATH above must not be the same path. It is recommended that GOPATH is set to a directory in your home directory such as ~/goprojects to avoid write permission issues. It is also recommended to add $GOPATH/bin to your PATH at this point.

  • Run the following commands to obtain btcd, all dependencies, and install it:
$ cd $GOPATH/src/github.com/btcsuite/btcd
$ go install -v . ./cmd/...
  • btcd (and utilities) will now be installed in $GOPATH/bin. If you did not already add the bin directory to your system path during Go installation, we recommend you do so now.

Updating

Linux/BSD/MacOSX/POSIX - Build from Source

  • Run the following commands to update btcd, all dependencies, and install it:
$ cd $GOPATH/src/github.com/btcsuite/btcd
$ git pull
$ go install -v . ./cmd/...

Getting Started

btcd has several configuration options available to tweak how it runs, but all of the basic operations described in the intro section work with zero configuration.

Linux/BSD/POSIX/Source

$ ./btcd

IRC

  • irc.libera.chat
  • channel #btcd
  • webchat

Issue Tracker

The integrated github issue tracker is used for this project.

Documentation

The documentation is a work-in-progress. It is located in the docs folder.

Release Verification

Please see our documentation on the current build/verification process for all our releases for information on how to verify the integrity of published releases using our reproducible build system.

License

btcd is licensed under the copyfree ISC License.