Skip to content

Bitcoin Cash II v27.0.4

Latest

Choose a tag to compare

@BitcoincashII BitcoincashII released this 02 Dec 01:22
· 4 commits to main since this release

⚠️ 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 enforces new rules. Among them, no output may pay to a SegWit
    (bc1…) address, the coinbase included. Pools: pay your coinbase to a CashAddr or legacy
    address.
  • From the same block a node still running v27.0.2 follows a different chain. v27.0.4 keeps the
    1-hour ASERT difficulty half-life, which v27.0.2 would change there.
  • Upgrade 10 activates at block 96,721 (expected around January 1, 2027).

Nodes running v27.0.3 must upgrade to v27.0.4 as well.

How to upgrade

  1. Stop the node (or quit the app) and wait until it has exited.
  2. Install v27.0.4 over v27.0.2 (or v27.0.3). On Windows, run the installer; it
    replaces the old version in place.
  3. Start it again. Your blocks, wallets and settings are kept. The first start rebuilds the chain
    state once, by itself, in a few seconds.

Start once with -reindex instead if the chain is already at or past block 92,736 when you
upgrade, if the node runs in prune mode, on testnet, or if the node ran the v27.0.3 preview past
block 91,800. Use -reindex in these cases; -reindex-chainstate is not enough.

If your node stopped following the chain before you upgraded, start v27.0.4 once with -reindex.

Before you start it, check bitcoincashII.conf; v27.0.4 does not start otherwise:

  • remove any addresstype= or changetype= line naming bech32, p2sh-segwit or bech32m
    (or set it to legacy);
  • if you set both blockmaxsize= and blockmaxweight=, give them the same value;
  • on mainnet, testnet and signet, remove the regtest-only options -testactivationheight,
    -vbparams, -fastprune, -maxreorgdepth and -testmaxblockspentbytes.

Pools and miners: upgrade first, as soon as you can.

Downloads

File For
bitcoincashII-27.0.4-win64-setup.exe Windows installer (signed by "BCH2 Software")
bitcoincashII-27.0.4-win64.zip Windows, without an installer
bitcoincashII-27.0.4-linux64-qt.tar.gz / linux64.tar.gz Linux x86_64, with / without the app
bitcoincashII-27.0.4-linux-aarch64-qt.tar.gz / linux-aarch64.tar.gz Linux ARM64, with / without the app

Check your download against SHA256SUMS. macOS: build from source, as the
README explains.

Before Upgrade 10 (block 96,721)

  • Transaction version. From block 96,721 every transaction's version, the coinbase's included,
    must be 1 or 2.
  • Token spends signed in advance stop working. A spend of a coin that carries tokens, signed
    before Upgrade 10 and broadcast after it (a time-locked refund, an escrow, an offline
    transaction), is invalid: sign it again after the upgrade. Scripts that check a token's category
    must expect the bare 32-byte category of an immutable NFT, as CHIP-2022-02 specifies.
  • Data signatures. From Upgrade 10, a 64-byte OP_CHECKDATASIG signature is a Bitcoin Cash
    Schnorr signature, as on Bitcoin Cash. From Upgrade 10, transaction signatures take both forms:
    64-byte BIP340, as now, and 65-byte Bitcoin Cash Schnorr.
  • Data signature public keys. From Upgrade 10, OP_CHECKDATASIG and OP_CHECKDATASIGVERIFY
    require a correctly encoded public key (compressed or uncompressed), for every coin, as on
    Bitcoin Cash.
  • OP_IF and OP_NOTIF need a minimal true or false. From Upgrade 10, when a coin created in
    block 96,721 or later is spent, the value OP_IF or OP_NOTIF takes must be empty (false) or
    exactly 0x01 (true); any other value fails the script. Coins created before block 96,721 keep
    the old rule. Bitcoin Cash does not have this rule, so some scripts that work there fail on BCH2.
  • Pre-fork Taproot coins. Coins in pre-fork Taproot (bc1p…) outputs cannot be spent on BCH2
    from block 92,736.
  • SegWit coins. Coins in SegWit outputs, including SegWit wrapped in a P2SH address, do not get
    these Upgrade 10 script changes: bigger numbers, the new opcodes, SIGHASH_UTXOS, 65-byte Schnorr
    signatures and the token signature rules. Keep tokens in legacy or token-aware
    (bitcoincashii:z…) addresses.

What's new

  • The 1-hour ASERT half-life stays.
  • Upgrade 10 from block 96,721. It adds the bit-shift opcodes OP_LSHIFTNUM, OP_RSHIFTNUM,
    OP_LSHIFTBIN and OP_RSHIFTBIN (CHIP-2025-05), as on Bitcoin Cash.
  • CashTokens in the wallet, the app and the RPCs, with token-aware addresses (bitcoincashii:z…).
  • The node waits at least 2 hours after first seeing a block's header before it finalizes the
    block (new option -finalizationdelay, default 7200 seconds).
  • RPCs refuse a transaction whose outputs do not carry forward the tokens of the coins it spends,
    unless allowtokenburn is set: sendrawtransaction, submitpackage,
    signrawtransactionwithkey, signrawtransactionwithwallet, walletprocesspsbt and
    descriptorprocesspsbt.
  • The wallet and the signing RPCs do not sign while the node has not yet reached a rule change the
    network has passed.
  • Signing leaves an input signed with SIGHASH_SINGLE unsigned when the transaction has no output
    at that input's index (signrawtransactionwithkey, signrawtransactionwithwallet,
    walletprocesspsbt, descriptorprocesspsbt).
  • A relayed transaction holds at most 3,000 signature operations, as on Bitcoin Cash.
  • bitcoincashII-tx sign signs with ALL|FORKID by default.
  • The app shows the tokens in a PSBT, marks tokens whose verified name or symbol another token
    uses, and refuses bc1… addresses on the Send tab.
  • Wallet, RPC, network and GUI fixes, and fixes from Bitcoin Core and Bitcoin Cash Node.

RPC and interface changes

  • getdsproof takes a proof id, a txid or an outpoint, and has a new recursive argument. An
    orphan proof now shows "txid": null; the orphan field is gone. getdsprooflist entries carry
    more fields.
  • decodescript no longer returns a segwit object.
  • validateaddress reports SegWit (bc1…) addresses as invalid. getnewaddress,
    getrawchangeaddress, createmultisig, addmultisigaddress and the change_type option of the
    funding RPCs refuse the SegWit address types with an error.
  • getblock (verbosity 2 and 3), getrawtransaction (verbosity 1 and 2), gettxout, verbose
    gettransaction and the REST block, tx and getutxos JSON replies return an error when the reply
    would exceed the new -rpcmaxjsonmemory limit.
  • New RPCs: gettokenbalances, gettokenmetadata, gettokensupply, importtokenregistry,
    sendnft and sendtoken. New options: -blockmaxsize (Bitcoin Cash Node's name for
    -blockmaxweight), -finalizationdelay, -rpcmaxjsonmemory, -tokenmetadataindex,
    -tokenmetadataundodepth (for testing) and, for bitcoincashII-tx, -upgrade10 (signing for
    blocks from Upgrade 10).
  • Testnet, signet and regtest have new default ports (testnet 18349 and RPC 18352, signet 38349 and
    38352, regtest 18459 and 18462) and new address prefixes (bchiitest: on testnet and signet,
    bchreg: on regtest).