Mirror of https://gitlab.com/bitcoincashii/bitcoincashII-core, updated every 6 hours. Bitcoin Cash II Core - Full node software
  • C++ 58.3%
  • C 21.5%
  • Python 17.4%
  • Shell 0.8%
  • M4 0.7%
  • Other 1.1%
Find a file
2026-12-01 20:47:33 +00:00
.github/workflows ci: test the rebuild from v27.0.3 (commit bc5da36) 2026-11-27 22:03:04 +00:00
.tx Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
build-aux/m4 build: stop tracking autogen output, as Bitcoin Core does 2026-11-18 14:30:41 +00:00
build_msvc doc: documentation for v27.0.4 2026-12-01 20:46:16 +00:00
ci Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
contrib doc: documentation for v27.0.4 2026-12-01 20:46:16 +00:00
depends build: stop tracking autogen output, as Bitcoin Core does 2026-11-18 14:30:41 +00:00
doc doc: documentation for v27.0.4 2026-12-01 20:46:16 +00:00
share doc: documentation for v27.0.4 2026-12-01 20:46:16 +00:00
src doc: documentation for v27.0.4 2026-12-01 20:46:16 +00:00
test doc: documentation for v27.0.4 2026-12-01 20:46:16 +00:00
.cirrus.yml Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
.editorconfig Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
.gitignore build: stop tracking autogen output, as Bitcoin Core does 2026-11-18 14:30:41 +00:00
.python-version Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
.style.yapf Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
autogen.sh Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
build.sh Fix what the lints find in BCH2's sources, tests and scripts 2026-11-18 14:20:10 +00:00
configure.ac build: bump version to 27.0.4 2026-11-26 16:01:51 +00:00
CONTRIBUTING.md Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
COPYING Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
CREDITS.md doc: documentation for v27.0.4 2026-12-01 20:46:16 +00:00
INSTALL.md Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
libbitcoinIIconsensus.pc.in Bitcoin Cash II (BCH2) Core v27.0.0 2026-03-04 21:57:08 +00:00
Makefile.am tx: sign with ALL|FORKID when bitcoincashII-tx is given no flags 2026-11-26 15:46:14 +00:00
README.md doc: documentation for v27.0.4 2026-12-01 20:46:16 +00:00
SECURITY.md doc: documentation for v27.0.4 2026-12-01 20:46:16 +00:00
test_bch2_fork.sh Fix what the lints find in BCH2's sources, tests and scripts 2026-11-18 14:20:10 +00:00
test_bch2_testnet.sh Merge branch 'release-polish' (4eec07f) into rc2 2026-11-18 14:49:41 +00:00

Bitcoin Cash II (BCH2) Core

Version 27.0.4 | Upgrade by: block 92,736 | Upgrade 10: block 96,721 | P2P port: 8339 | RPC port: 8342

Bitcoin Cash II (BCH2) is a SHA-256 cryptocurrency that forked from Bitcoin II (BC2) at block 53,200 and follows the Bitcoin Cash rules: 32 MB blocks, ASERT difficulty adjustment, CashAddr addresses and CashTokens. This repository is the BCH2 full node: bitcoincashIId (the node), bitcoincashII-qt (the node with a wallet app), and the command-line tools.

⚠️ Upgrade before block 92,736

Every node, miner, pool, exchange and explorer must run v27.0.4 before block 92,736 (expected around December 4, 2026).

  • From block 92,736 v27.0.4 nodes enforce new rules. Among them, no transaction output may be a SegWit program, so a block whose coinbase pays a bc1… address is invalid. Pools: pay your coinbase to a CashAddr or legacy address before then.
  • From the same block v27.0.4 keeps the 1-hour ASERT half-life, which v27.0.2 changes to 2 days there. A node still running v27.0.2 follows a different chain from that block.
  • Upgrade 10 activates at block 96,721 (expected around January 1, 2027).

How to upgrade: Upgrading from v27.0.2. What changed: the release notes.


Contents

  1. What's new in 27.0.4
  2. Upgrading from v27.0.2
  3. Download and verify
  4. Install
  5. Build from source: Ubuntu/Debian, Fedora, Arch Linux, macOS, Windows, reproducible builds
  6. Running the node
  7. Configuration
  8. Mining
  9. Common commands
  10. Network information
  11. Troubleshooting
  12. Credits, license and links

What's new in 27.0.4

  • The 1-hour ASERT half-life stays. v27.0.2 would switch to a 2-day half-life at block 92,736; v27.0.4 does not, so the two follow different chains from that block.
  • New rules from block 92,736 (see above).
  • Upgrade 10 from block 96,721: VM limits, big integers, OP_POSEIDON, SIGHASH_UTXOS, Schnorr signatures in OP_CHECKMULTISIG, the bit-shift opcodes OP_LSHIFTNUM, OP_RSHIFTNUM, OP_LSHIFTBIN and OP_RSHIFTBIN (CHIP-2025-05, as on Bitcoin Cash), and the Upgrade 10 CashToken rules.
  • CashTokens in the wallet, the app and the RPCs: a Tokens tab, token balances, sending fungible tokens and NFTs, and token-aware addresses (bitcoincashii:z..., bitcoincashii:r...) for receiving them.
  • Double-spend proofs are looked up as in Bitcoin Cash Node: getdsproof takes a proof id, a txid or an outpoint.
  • Many wallet, RPC and GUI fixes, and fixes backported from Bitcoin Core and Bitcoin Cash Node.

More in the release notes.


Upgrading from v27.0.2

  1. Stop the node (or quit the app) and wait until it has exited.
  2. Install v27.0.4 over v27.0.2: on Windows run the installer, which replaces v27.0.2 in place; on Linux replace the programs (see Install); on macOS build the app (see macOS).
  3. Start it again, the same way as before.

Your blocks, wallets and settings stay where they are and v27.0.4 uses them. The first start rebuilds the chain state from the blocks on disk, once, by itself (a few seconds for the BCH2 chain); it downloads nothing.

Start once with -reindex instead if any of these applies:

  • you upgrade when the chain is already at or past block 92,736 (the node says so and stops: "The data directory was written by an earlier version ... restart with -reindex");
  • the node runs in prune mode;
  • the node is on testnet;
  • the node ran the v27.0.3 preview past block 91,800.

Use -reindex in these cases; -reindex-chainstate is not enough.

bitcoincashIId -reindex                 # the node
bitcoincashII-qt -reindex               # the app on Linux

On Windows, start the app once from a Command Prompt: "C:\Program Files\Bitcoin Cash II\bitcoincashII-qt.exe" -reindex.

Downgrading to v27.0.2 is possible only before block 92,736.


Download and verify

Download the release from the v27.0.4 release page.

File For
bitcoincashII-27.0.4-win64-setup.exe Windows 10 and 11 (64-bit), installer
bitcoincashII-27.0.4-win64.zip Windows, the programs without an installer (it also has bitcoincashII-util.exe, which the installer leaves out)
bitcoincashII-27.0.4-linux64-qt.tar.gz Linux x86_64, with the app
bitcoincashII-27.0.4-linux64.tar.gz Linux x86_64, node and tools only
bitcoincashII-27.0.4-linux-aarch64-qt.tar.gz Linux ARM64 (Raspberry Pi 4/5 with a 64-bit OS), with the app
bitcoincashII-27.0.4-linux-aarch64.tar.gz Linux ARM64, node and tools only
SHA256SUMS the SHA-256 hash of each file

There is no macOS download: build it on your Mac with the macOS steps.

The Linux downloads run on any distribution with glibc 2.27 or later and carry their own copies of libevent, ZeroMQ, miniupnpc, NAT-PMP and SQLite; the app in the -qt files also needs the X11 (xcb), xkbcommon, fontconfig and FreeType libraries that a Linux desktop has. The release files are built with Guix, so anyone can build them again and get the same bytes. The Windows installer is signed by "BCH2 Software".

Check the download against SHA256SUMS before you run it:

# Linux, in the folder with the downloads
sha256sum --ignore-missing --check SHA256SUMS
# Windows PowerShell: compare the printed hash with the file's line in SHA256SUMS
Get-FileHash .\bitcoincashII-27.0.4-win64-setup.exe

Install

Windows

Run bitcoincashII-27.0.4-win64-setup.exe. It installs to C:\Program Files\Bitcoin Cash II and adds Bitcoin Cash II to the Start menu. Over v27.0.2 it replaces the old version in place: no uninstall needed, and no second copy. If Windows SmartScreen shows "Windows protected your PC", choose More info, then Run anyway. SmartScreen may name the publisher as unknown: the installer is signed with the project's own certificate ("BCH2 Software"), which Windows does not know. Check the download against SHA256SUMS first.

Linux

tar xzf bitcoincashII-27.0.4-linux64.tar.gz
sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoincashII-27.0.4-linux64/bin/*
bitcoincashIId --version

bitcoincashIId --version must print Bitcoin Cash II version v27.0.4. Use the -qt file for the app, and the aarch64 files on ARM64. To run the node as a system service, see doc/init.md and contrib/init.


Build from source

Every build below makes the same node, app and command-line programs as the downloads. The Linux steps were tested word for word on Ubuntu 24.04 and 22.04, Debian 13, Fedora 45 and Arch Linux, and the Windows steps on Ubuntu 24.04.

Ubuntu/Debian

1. Install the build tools and libraries

sudo apt update
sudo apt install -y build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 git \
    libevent-dev libboost-dev libsqlite3-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev \
    systemtap-sdt-dev

For the app, also:

sudo apt install -y qtbase5-dev qttools5-dev qttools5-dev-tools libqrencode-dev

2. Download the source code

git clone --branch v27.0.4 https://github.com/BitcoincashII/bitcoincashII-core.git
cd bitcoincashII-core

3. Build

./autogen.sh
./configure
make -j"$(nproc)"

./configure finds what step 1 installed: the app is built when the Qt packages are there (its summary then shows with gui / qt = yes), and not otherwise. To build the node and tools only, use ./configure --without-gui. A 4-core machine takes about 10 to 20 minutes.

4. Check, and install

make check               # optional: runs the unit tests (5 to 20 minutes)
sudo make install        # installs the programs to /usr/local/bin
bitcoincashIId --version

make install also copies three test programs (test_bitcoinII, bench_bitcoinII and, with the app, test_bitcoincashII-qt), and the installed programs keep their debugging information, so /usr/local/bin grows by about 2.5 GB with the app (about 1.7 GB without it).

The wallet stores its data in SQLite (descriptor wallets). Legacy (Berkeley DB) wallets need Berkeley DB 4.8; see doc/build-unix.md. With a newer Berkeley DB installed, ./configure says "Found Berkeley DB other than 4.8" and builds without legacy wallets.

Fedora

sudo dnf install -y gcc-c++ libtool make autoconf automake python3 git util-linux \
    libevent-devel boost-devel sqlite-devel miniupnpc-devel libnatpmp-devel zeromq-devel \
    systemtap-sdt-devel
sudo dnf install -y qt5-qttools-devel qt5-qtbase-devel qrencode-devel     # for the app
git clone --branch v27.0.4 https://github.com/BitcoincashII/bitcoincashII-core.git
cd bitcoincashII-core
./autogen.sh
./configure
make -j"$(nproc)"
sudo make install

Arch Linux

sudo pacman -Syu --needed base-devel git boost libevent sqlite miniupnpc libnatpmp zeromq \
    systemtap qt5-base qt5-tools qrencode
git clone --branch v27.0.4 https://github.com/BitcoincashII/bitcoincashII-core.git
cd bitcoincashII-core
./autogen.sh
./configure
make -j"$(nproc)"
sudo make install

macOS

There is no macOS download, and the BCH2 developers have not been able to test these steps on a Mac themselves. Build v27.0.4 on your own Mac with the steps below: it takes about 20 to 40 minutes the first time, works on Apple Silicon and Intel Macs, and needs no Apple developer account. You get the same programs as the other downloads: the app BitcoinCashII-Qt.app and the command-line programs.

Step 1: Open Terminal

Open Applications → Utilities → Terminal. Paste each block below into it and press Return.

Step 2: Install Apple's command line tools

xcode-select --install

A window opens: click Install and wait until it finishes. If Terminal says the tools are already installed, go on.

Step 3: Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

When it finishes, run the commands it prints under Next steps (on an Apple Silicon Mac they make brew available in Terminal). brew --version must then print a version.

Step 4: Install what the build needs

brew install automake libtool pkg-config boost libevent qt@5 qrencode miniupnpc libnatpmp zeromq

Step 5: Download the source code

cd ~
git clone --branch v27.0.4 https://github.com/BitcoincashII/bitcoincashII-core.git
cd bitcoincashII-core

Step 6: Build

./autogen.sh
./configure
make -j"$(sysctl -n hw.logicalcpu)"

Near the end of what ./configure prints, the line with gui / qt = yes must appear. If it says no, Step 4 did not finish: run it again, then repeat this step.

Step 7: Make the app, signed for your Mac

make deploy
cp -R dist/BitcoinCashII-Qt.app /Applications/

make deploy puts BitcoinCashII-Qt.app in the dist folder and signs it for your Mac with an ad-hoc signature (codesign --sign -), which needs no Apple developer account. It also writes Bitcoin-Cash-II.zip, a copy of the app. Open BitcoinCashII-Qt from Applications. If macOS will not open it, Control-click (right-click) the app, choose Open, then Open again.

To use the app on another Mac, copy it there and sign it again on that Mac:

xattr -dr com.apple.quarantine /Applications/BitcoinCashII-Qt.app
codesign --force --deep --sign - /Applications/BitcoinCashII-Qt.app

Step 8 (optional): the command-line programs

sudo make install
bitcoincashIId --version

This puts bitcoincashIId, bitcoincashII-cli, bitcoincashII-tx, bitcoincashII-wallet, bitcoincashII-util and bitcoincashII-qt (the app's program, without the .app bundle), and the test programs, in /usr/local/bin. They run as they are: on Apple Silicon the linker signs each one as it builds it. If you strip them there, sign each one again, for example codesign --force --sign - /usr/local/bin/bitcoincashIId.

Upgrading from v27.0.2 on a Mac

Quit the old app or stop the old node first. Your blocks, wallets and settings stay in ~/Library/Application Support/Bitcoin Cash II/, and v27.0.4 uses them as they are: its first start rebuilds the chain state by itself, once. From block 92,736 on, and in the other cases listed in Upgrading from v27.0.2, start it once with -reindex instead, for the app:

/Applications/BitcoinCashII-Qt.app/Contents/MacOS/BitcoinCashII-Qt -reindex

or bitcoincashIId -reindex for the command-line node.

For more options (a build without the GUI, the legacy wallet), see doc/build-osx.md.


Windows (cross-compiled on Linux)

The Windows programs are built on Linux (Ubuntu 24.04 here) with the MinGW-w64 compiler:

sudo apt install -y build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git \
    g++-mingw-w64-x86-64-posix nsis
git clone --branch v27.0.4 https://github.com/BitcoincashII/bitcoincashII-core.git
cd bitcoincashII-core
make -C depends HOST=x86_64-w64-mingw32 -j"$(nproc)"
./autogen.sh
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
make -j"$(nproc)"
make deploy      # optional: the installer, bitcoincashII-27.0.4-win64-setup.exe

The programs are in src/ and src/qt/, with .exe names. See doc/build-windows.md for more.

Reproducible builds (Guix)

The release files are built with Guix, and anyone can rebuild them and compare the SHA-256 hashes with SHA256SUMS. See contrib/guix/README.md. In a clone of the v27.0.4 tag, these commands make the release files the way the release build does:

export HOSTS='x86_64-linux-gnu aarch64-linux-gnu x86_64-w64-mingw32'
export DISTNAME=bitcoincashII-27.0.4
export ADDITIONAL_GUIX_TIMEMACHINE_FLAGS='--url=https://codeberg.org/guix/guix.git'
./contrib/guix/guix-build
./contrib/guix/guix-release-assets

The files and their SHA256SUMS are then in guix-build-27.0.4/release/. Built from anything other than the tag, the build is named after the commit and its files differ from the release. The Windows installer in a release is signed afterwards with contrib/guix/guix-sign-windows, which also rewrites SHA256SUMS: Guix builds its unsigned form, and the header of that script shows how to check a signed download against your own build.


Running the node

bitcoincashIId -daemon                       # start in the background
bitcoincashII-cli getblockchaininfo          # sync progress: "blocks" against "headers"
bitcoincashII-cli getpeerinfo                # connected peers
bitcoincashII-cli stop                       # stop

The BCH2 chain is small (under 1 GB), so a new node syncs in minutes. The app, bitcoincashII-qt, runs the same node with a wallet window.


Configuration

The node reads bitcoincashII.conf in its data directory:

OS Data directory
Linux ~/.bitcoincashII/
macOS ~/Library/Application Support/Bitcoin Cash II/
Windows %APPDATA%\Bitcoin Cash II\

An example:

# Accept connections from other nodes
listen=1

# Answer RPC calls (bitcoincashII-cli on the same machine needs no password: it uses the cookie file)
server=1

# Memory for the chain state cache, in MiB
dbcache=450

For RPC from another program or machine, make a password entry with share/rpcauth/rpcauth.py <user> (in the source code, and in share\rpcauth\ of the Windows install; the Linux downloads do not include it) and put the rpcauth= line it prints in the file; add rpcbind= and rpcallowip= for the addresses that may connect. bitcoincashIId -help lists the options (bitcoincashIId -help -help-debug also the debugging ones), and share/examples/bitcoincashII.conf describes them.


Mining

BCH2 is mined with SHA-256d hardware. The node has no built-in miner: point pool or mining software at its getblocktemplate RPC.

bitcoincashII-cli getblocktemplate '{"rules": []}'

Pay the coinbase to a CashAddr (bitcoincashii:q...) or legacy address. From block 92,736 a coinbase paying a bc1… (SegWit) address makes the block invalid. Pools must run v27.0.4 before block 92,736.

Build the coinbase with transaction version 1 or 2. From block 96,721 every transaction's version, the coinbase's included, must be 1 or 2.


Common commands

# Chain
bitcoincashII-cli getblockchaininfo
bitcoincashII-cli getblockcount
bitcoincashII-cli getblock "$(bitcoincashII-cli getblockhash 1000)"

# Wallet
bitcoincashII-cli createwallet "mywallet"
bitcoincashII-cli getnewaddress
bitcoincashII-cli getbalance
bitcoincashII-cli sendtoaddress "bitcoincashii:qp..." 1.0
bitcoincashII-cli listtransactions

# CashTokens: an address to receive tokens, the balances, and a fungible-token send
bitcoincashII-cli getnewaddress "" token
bitcoincashII-cli gettokenbalances
bitcoincashII-cli sendtoken "bitcoincashii:zp..." <category> 100

# Network
bitcoincashII-cli getnetworkinfo
bitcoincashII-cli addnode "ip:8339" "add"

bitcoincashII-cli help lists every command, and bitcoincashII-cli help <command> explains one.


Network information

Mainnet

Parameter Value
P2P port 8339
RPC port 8342
Tor target port 8344
Network magic 0xb2c2b2c2
Addresses bitcoincashii:q... (P2PKH), bitcoincashii:p... (P2SH)
Token-aware addresses bitcoincashii:z... (P2PKH), bitcoincashii:r... (P2SH)
Rules of v27.0.4 from block 92,736
Upgrade 10 from block 96,721

Testnet

Parameter Value
P2P port 18349
RPC port 18352
Tor target port 18354
Network magic 0xb2c20b11
Addresses bchiitest: (e.g. bchiitest:q..., token-aware bchiitest:z...; also on signet)
Rules of v27.0.4 from block 1,001
Upgrade 10 from block 1,001

Regtest

Parameter Value
P2P port 18459
RPC port 18462
Tor target port 18464
Network magic 0xb2c2fabf
Addresses bchreg: (e.g. bchreg:q..., token-aware bchreg:z...)
BCH2 fork from block 201
Rules of v27.0.4 from block 250
Upgrade 10 from block 301

DNS seeds

  • dnsseed1.bch2.org
  • dnsseed2.bch2.org

Seed nodes

144.202.73.66:8339    (Dallas, USA)
108.61.190.83:8339    (Frankfurt, Germany)
64.176.215.202:8339   (New Jersey, USA)
45.32.138.29:8339     (Silicon Valley, USA)
139.180.132.24:8339   (Singapore)

Troubleshooting

"The data directory was written by an earlier version ... restart with -reindex": start once with -reindex (see Upgrading from v27.0.2).

"Cannot obtain a lock on data directory": another copy of the node or app is running on the same data directory. Stop it first (bitcoincashII-cli stop, or quit the app).

The node is on a different chain from the block explorer: check bitcoincashIId --version says v27.0.4, then start once with -reindex.

Build: "libevent version 2.1.8 or greater not found" or "Boost is not available!": step 1 of the build for your system did not finish; run it again.


Credits

BCH2 is a fork of Bitcoin II, which is a fork of Bitcoin Core. BCH2 started from the rules of Bitcoin Cash, as Bitcoin Cash Node implements them, and differs from them in places. See CREDITS.md for the projects BCH2 builds on, and the git history for the contributors.

License

Bitcoin Cash II Core is released under the terms of the MIT license. See COPYING.