Skip to content

v2026.10.4

Choose a tag to compare

@github-actions github-actions released this 04 Oct 13:57
· 440 commits to main since this release
v2026.10.4
f173271

The fourth release. Everything below is measured against v2026.9.24:
what changed since, and what it costs to move past it.
CHANGELOG.md's own v2026.10.4 section is the record of everything
that went into it.

Security

This release fixes three advisories. Upgrade from 2026.9.24 or earlier.

  • JSON-RPC answered with no authentication, so a cross-origin request
    could stop the node

    (GHSA-68jv-ghr4-jjmj, medium).
    Every call now needs a credential: see the first breaking change below.
  • One remote peer could fill the disk, stall the node loop and fill the
    address table

    (GHSA-rm5x-6v45-j8m6, high).
  • A block's total sigop cost was never checked, so the node accepted a
    block Core rejects

    (GHSA-6hv4-mmgr-39wq, medium).

The RPC surface and the options grew too: getmempoolentry, getchaintips,
gettxout, help, invalidateblock, generatetoaddress and
setnetworkactive are among the methods now served, and -bind,
-externalip, -whitelist, -testnet4 and the -*notify options are read.
The data directory gains banlist.json and anchors.dat. This is additive
and costs nothing to move past.

Breaking changes

  • Every JSON-RPC call has to carry a credential the node accepts
    (closes #1055). A client sending none, or a placeholder the node used
    to ignore, is answered 401 Unauthorized. Point it at the cookie the
    node writes at start, .cookie in the chain's own data directory
    (<datadir>/regtest/.cookie under -regtest), the way a client of
    bitcoind reads its cookie, or start the node with an -rpcauth
    line and give the client that user's password.
  • A node whose JSON-RPC listener cannot start stops, as bitcoind
    does
    (closes #1076). With the RPC port taken or .cookie unwritable,
    btclib-node prints Error: Unable to start HTTP server. See debug log for details. and exits 1. A caller that starts a Node itself finds
    its thread ended and the message in Node.init_errors. Free the port
    or pick another with -rpcport, and make the chain's data directory writable
    where the cookie could not be written.
  • rpcpassword= in bitcoin.conf is read, and stops the cookie
    (closes #1070). The node used to warn about the key and write
    .cookie all the same; a client reading .cookie beside a
    rpcpassword= line now has to send that user and password instead. A
    # anywhere on the line refuses to start, as in Core.
  • Any rpcwhitelist= refuses every method to a user it does not name
    (closes #1070), as in Core: give that user a whitelist of its own, or
    set rpcwhitelistdefault=0.
  • A boolean in bitcoin.conf, or after -listen=, is read as Core
    reads it
    (closes #1117): true, yes and on are false, as they are
    to bitcoind, so testnet=true selects mainnet and listen=yes does
    not listen. Write 1 for true and 0 for false. norpccookiefile=true
    and -norpccookiefile=0 are double negatives, read as
    rpccookiefile=1: the cookie is written to a file named 1 in the
    chain's data directory, not to .cookie, as bitcoind writes it. Drop
    the line to keep .cookie where a client reads it, or write
    norpccookiefile=1 for no cookie.
  • A command-line argument the node refuses exits 1, not 2
    (closes #1116), after one Error: ... line on stderr, as bitcoind
    does: a script testing the exit status for 2 has to test for 1.
  • A node whose P2P listener cannot bind stops, as bitcoind does
    (closes #1093). With the P2P port taken, btclib-node prints why the
    bind failed (closes #1135), then
    Error: Failed to listen on any port. Use -listen=0 if you want this.,
    and exits 1. A caller that starts a Node itself finds its thread
    ended and both messages in Node.init_errors. Free the port, pick
    another with -port, or start with -listen=0.
  • An option's value follows =, never the next argument
    (closes #1136): -datadir <dir> is refused as bitcoind refuses it,
    with "Command line contains unexpected token"; write -datadir=<dir>.
  • bitcoin.conf is read as Core reads it (closes #1137). Within one
    section the first value of an option taking one value wins, so keep one
    line per option or put the one you mean first. A no-prefixed key negates
    (nolisten=1 does not listen), prune= is read, and listen= and
    debug= apply from a chain's own section too.
  • -debug=<category> takes Core's logging category names
    (closes #1123): debug=false, or any name Core does not know, refuses
    to start with Unsupported logging category, and debug=none is off.
  • -conf naming another file while the data directory holds a
    bitcoin.conf refuses to start, as bitcoind does
    (closes #1155).
    Move what that bitcoin.conf says into the file -conf names and
    delete or rename it, or start with -allowignoredconf to read the file
    -conf names with a warning in the log.
  • A Node opens its stores when it starts, not when it is built
    (closes #1279). Node(config) no longer has chainstate, block_db,
    p2p_manager or mempool: they are there once start() returns,
    unless init_errors says start-up failed, or once load() has run for
    a node driven without its thread. A caller
    reading them off a node it never started calls node.load() first.
  • -port, -rpcport, -rpcbind, -connect or -addnode set only in
    bitcoin.conf's default section, off main, refuses to start, as
    bitcoind refuses it
    (closes #1327). The node used to start anyway
    with the option dropped; it now prints which option and which chain,
    Error: Config setting for -<option> only applied on <chain> network when in [<chain>] section., and exits 1. Move the line into that
    chain's own section, e.g. [regtest], or set it on the command line.
  • version signals NODE_COMPACT_FILTERS, and BIP157 requests are
    answered, only under -peerblockfilters
    (closes #1395), off by
    default as in Core. A client relying on this node's own BIP157 filter
    service starts it with -peerblockfilters=1.
  • btclib-node now depends on btclib-wallet directly (closes
    #1508): btclib 2026.9.29 moved descriptors out to it
    (btclib-org/btclib#2129), so an unlocked install resolving that
    release or later needs btclib-wallet alongside it, which
    pip install btclib-node now pulls in on its own.
  • Headers a peer serves on a chain with less work than Core's anti-DoS
    threshold are no longer stored
    (closes #1246): they are counted,
    then downloaded a second time and stored only once the chain clears
    the threshold. Headers of such a chain that an existing data directory
    already holds are kept and read as before, as Core keeps what its block
    index holds, so nothing has to be done about them.
  • interpreter.check_transactions is check_scripts(transaction_data, flags, node), and checks the scripts alone: a block's amounts, fees
    and sigop cost are main._validate_block's.
  • history.log marks each debug line with its category, [net] for
    one, where it had [debug], and -debug=<category> writes only that
    category's lines
    (closes #1322). A start with -debug=rpc no longer
    logs the peer lines; -debug, -debug=1 or -debug=all still logs
    every one, and -debugexclude=<category> drops one (closes #1609).
  • Verifying a release's attestation names a new signer and the tag.
    gh attestation verify takes
    --signer-workflow btclib-org/.github/.github/workflows/reusable-build.yml@refs/heads/main
    and --source-ref refs/tags/v<version>; SECURITY.md names the signer of
    an earlier release.
  • The attestation bundle is attached as v2026.10.4.intoto.jsonl, where
    earlier releases attach v<version>.attestation.jsonl. A script that
    downloads it by name, or passes it to gh attestation verify --bundle, uses
    the new name.
  • btclib-node depends on cryptography, through btclib[bip324] (issue
    #1190). PyPI serves no cryptography wheel for macOS on x86_64 or Windows
    on ARM, so there pip install btclib-node builds it from source, which
    needs a C compiler, Rust and OpenSSL: cryptography's installation guide has
    the steps.
  • Peers now speak BIP324 v2 with this node by default (issue #1190).
    -v2transport is on, as in Core, so the node advertises NODE_P2P_V2 and
    dials v2 where the address advertises it. -nov2transport turns it off. A
    peer that speaks v1 only is refused unless the node starts with
    -v1transport=1; the next entry has the rest.
  • The node speaks BIP324 v2 alone unless started with -v1transport=1
    (closes #1190). A v1 peer connecting to it is dropped, an automatic
    outbound connection goes only to an address advertising NODE_P2P_V2
    or carrying exactly a seed's services, a v2 dial the peer drops is not
    retried with v1, and addnode or addconnection with v2transport
    false is refused.
    Bitcoin Core accepts v1; SECURITY.md's Where this node departs from
    Bitcoin Core
    says why this node does not. -v2transport=0 turns v1 on
    by itself, and -v2transport=0 -v1transport=0 is refused at start. To
    reach a v1-only peer or a light client, start with -v1transport=1, which
    also restores the v1 retry, or with -nov2transport.
  • The mempool refuses a transaction Core's IsStandardTx,
    AreInputsStandard or IsWitnessStandard refuses
    (closes #1382). An
    output script of no standard type, more than one dust output, a bare
    multisig of more than 3 keys, a script or witness over Core's limits,
    or a transaction over 400000 weight is answered with Core's reject
    reason by sendrawtransaction and testmempoolaccept, and not
    relayed. -acceptnonstdtxn on a test chain accepts them.
    -datacarrier, -datacarriersize, -permitbaremultisig and
    -dustrelayfee set the limits.
  • The mempool refuses a version=3 transaction BIP431 refuses, a
    transaction that would make a cluster of more than 64 transactions or
    101000 vbytes, and one under 65 non-witness bytes
    (closes #1399,
    closes #1383, closes #1687). sendrawtransaction and
    testmempoolaccept answer TRUC-violation, too-large-cluster or
    tx-size-small, and the transaction is not relayed.
  • The JSON-RPC listener answers a source outside loopback only where
    -rpcallowip names it, and -rpcbind alone widens nothing
    (closes
    #1211, closes #1268, closes #1269, closes #1281, closes #1291,
    closes #1288). It binds ::1 and 127.0.0.1. A request from any
    other source gets a bare 403, as bitcoind answers it, and -rpcbind is
    ignored without -rpcallowip. A client on another host needs both, e.g.
    -rpcallowip=<subnet> and -rpcbind=<address>.
  • btclib-node sets the umask to 0077 on POSIX (closes #1198): the
    chain's data directory is 0700 and history.log 0600, as bitcoind
    leaves them. A job of another account that read either, a backup or a
    monitor, runs as the node's user or is given access.
  • A history.log line is stamped and marked as debug.log stamps it
    (closes #1297, closes #1280). The time is UTC ISO 8601 to the second, then
    one space, where it was local time with milliseconds and -. A warning
    is marked [warning] and an error [error]. The file opens on five blank
    lines and a version line (closes #1309, closes #1305, closes #1306). A
    reader of the file has to parse the new shape.
  • An integer option is read as bitcoind reads it, and a port is ASCII
    digits alone
    (closes #1313, closes #1324, closes #1285). A value that is
    not an integer was refused; its leading digits are read now, so
    -maxconnections=12x reads 12. -rpcbind, -connect, -addnode and
    addnode refuse a port with a sign, a space, a _ or a non-ASCII digit.
    Check the values you pass.
  • A transaction's JSON is Core's TxToUniv (closes #1440, closes #1448,
    closes #1446). A vout is value, n and a scriptPubKey that nests
    asm, desc, hex, address (where one exists) and type, where
    btclib's to_dict kept type and addresses beside it. A vin is
    txid, vout, scriptSig and sequence, or coinbase and sequence,
    with txinwitness only when the witness stack is not empty; asm stays
    btclib's. getblock answers fee and, at verbosity 3, prevout. A client
    written against the earlier shape has to read these.
  • submitblock answers a reason where it answered null (closes #1335,
    closes #1390, closes #1339). A tip block failing bad-cb-height or bad-txns-nonfinal
    answers that reason, and failing scripts answer a reason beginning
    block-script-verify-flag-failed. A caller that took null for
    acceptance has to read the answer.
  • An RPC call is refused where Core refuses it (closes #1424, closes
    #1293, closes #1294, closes #1168, closes #1457, closes #1372,
    closes #1405). More
    positional arguments than the method declares, or two or more of the wrong
    type, are refused with the method's full help. A params object is mapped
    onto positions, and a name repeated, unknown or given both ways is refused
    with RPC_INVALID_PARAMETER. A hex txid or blockhash of the wrong
    length is refused, and so is a rawtx with whitespace. A bare
    gettxoutsetinfo answers muhash (closes #1387).
  • sendrawtransaction and testmempoolaccept answer Core's reject reason
    and details, in the order Core checks them
    (closes #1328, closes #1375,
    closes #1371, closes #1373, closes #1447). They apply maxfeerate and maxburnamount,
    and answer -27 for a confirmed resubmission where they answered -25. A
    caller matching on a message has to read the reason.
  • The mempool refuses a spend of an outpoint a held transaction spends, a
    fee under the rolling minimum or min_relay_feerate, and a transaction of
    more than 16000 sigops
    (closes #1244, closes #1245, closes #1357,
    closes #1332, closes #1252).
    Replacing is not ported (issue #1334), so a conflicting spend is refused
    whatever it pays. A reorg's re-added transactions are exempt from the fee
    floor. -minrelaytxfee sets the floor, in BTC/kvB.
  • Connection.parse_messages takes the octets read, and
    Connection.buffer, p2p.connection.frame_message and
    p2p.connection.frame_message_bytes are gone
    (issue #1190):
    Connection frames through p2p/transport.py, which holds
    frame_message_bytes. A caller that drove a Connection by hand passes it
    the octets and imports frame_message_bytes from there.
  • The dependency floors rise (closes #1684, issue #1685). pip install btclib-node takes btclib>=2026.10.5, btclib-wallet>=2026.10.4 and
    bitcoin-core-rpc>=2026.10.4, and upgrading installs btclib-ecc 2026.10.2
    and btclib-secp256k1 0.8.0.10 with them. An install that pins any of these
    lower has to move. generateblock refuses a WIF of another chain, as Core
    does, which btclib-wallet 2026.10.4 makes possible.
  • -datadir, -conf, -blocksdir and -rpccookiefile are read lexically
    normal
    (closes #1187), as Core reads them: a .. takes the component
    before it off whether that component is missing or a symbolic link, so
    link/.. names the directory holding the link, not the link target's
    parent. A path written that way lands elsewhere than before.
  • testmempoolaccept ends the call at the first bad rawtx (closes
    #1329), as Core does: an array of fewer than 1 or more than 25 is refused
    with -8, and the first element of the wrong type (-3) or that does not
    decode (-22) ends the call, where it answered one entry per element.
  • The Python API under btclib_node changed in about sixty more places
    (issue #1685), for a program that imports it. release.yml's
    public-api job lists each against v2026.9.24. Among them:
    rpc.connection.RequestHead and RpcConnection's send methods;
    RpcManager.server, which takes a list of sockets; Chain.__init__,
    which requires fixed_seeds, headers_sync_params and
    min_bip9_warning_height; BlockIndex.get_download_candidates,
    BlockIndex.get_headers_from_locators and MAX_DOWNLOAD_WINDOW, gone;
    PeerDB's DNS and sampling helpers, gone; and Config's rpc_host,
    whose default is now None.
  • An HTTP header section over 8192 bytes is refused, as Core's
    libevent does; it was 65536. A JSON-RPC client sending larger headers
    has to trim them.

Worth knowing, though nothing raises

  • A received message is logged under the net debug category, as Core logs
    it, and a payload that does not parse is one net line without a
    traceback.
    -logratelimit, on by default, caps each source location's
    non-debug lines in history.log at 1 MiB an hour, as Core does; debug lines
    are never capped, and -nologratelimit removes the cap.
  • A relayed transaction's scripts are checked on Node.worker_pool, not on
    Node's thread
    (issue #1685), so peers keep being served while they run.
    One check is in flight at a time and a peer's next tx waits. A check with
    no verdict after 300 seconds is dropped and logged. sendrawtransaction,
    testmempoolaccept and a reorg's re-added transactions are still checked on
    Node's thread.
  • The address table is Core's addrman (closes #1308): new and tried
    buckets, test-before-evict, and failed attempts counted. The 10,000-address
    bound is replaced by Core's bucket capacity. A terrible answered address
    stays in the tried table until another takes its slot. On the first start
    over a store written by an earlier release, its rows are placed again, each
    as its own source, and a row with no free slot is deleted (about 1% of
    10,000 answered rows, by the PR's own measurement).
  • A block whose legacy, P2SH and witness sigops together cost more than
    MAX_BLOCK_SIGOPS_COST is refused bad-blk-sigops
    (closes #1585), as
    Core's ConnectBlock refuses it.