Repository navigation
v2026.10.4
·
440 commits
to main
since this release
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 answered401 Unauthorized. Point it at the cookie the
node writes at start,.cookiein the chain's own data directory
(<datadir>/regtest/.cookieunder-regtest), the way a client of
bitcoindreads 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.cookieunwritable,
btclib-nodeprintsError: Unable to start HTTP server. See debug log for details.and exits 1. A caller that starts aNodeitself finds
its thread ended and the message inNode.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=inbitcoin.confis read, and stops the cookie
(closes #1070). The node used to warn about the key and write
.cookieall the same; a client reading.cookiebeside 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
setrpcwhitelistdefault=0. - A boolean in
bitcoin.conf, or after-listen=, is read as Core
reads it (closes #1117):true,yesandonare false, as they are
tobitcoind, sotestnet=trueselects mainnet andlisten=yesdoes
not listen. Write1for true and0for false.norpccookiefile=true
and-norpccookiefile=0are double negatives, read as
rpccookiefile=1: the cookie is written to a file named1in the
chain's data directory, not to.cookie, asbitcoindwrites it. Drop
the line to keep.cookiewhere a client reads it, or write
norpccookiefile=1for no cookie. - A command-line argument the node refuses exits 1, not 2
(closes #1116), after oneError: ...line on stderr, asbitcoind
does: a script testing the exit status for 2 has to test for 1. - A node whose P2P listener cannot bind stops, as
bitcoinddoes
(closes #1093). With the P2P port taken,btclib-nodeprints 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 aNodeitself finds its thread
ended and both messages inNode.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 asbitcoindrefuses it,
with "Command line contains unexpected token"; write-datadir=<dir>. bitcoin.confis 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. Ano-prefixed key negates
(nolisten=1does not listen),prune=is read, andlisten=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 withUnsupported logging category, anddebug=noneis off.-confnaming another file while the data directory holds a
bitcoin.confrefuses to start, asbitcoinddoes (closes #1155).
Move what thatbitcoin.confsays into the file-confnames and
delete or rename it, or start with-allowignoredconfto read the file
-confnames with a warning in the log.- A
Nodeopens its stores when it starts, not when it is built
(closes #1279).Node(config)no longer haschainstate,block_db,
p2p_managerormempool: they are there oncestart()returns,
unlessinit_errorssays start-up failed, or onceload()has run for
a node driven without its thread. A caller
reading them off a node it never started callsnode.load()first. -port,-rpcport,-rpcbind,-connector-addnodeset only in
bitcoin.conf's default section, offmain, refuses to start, as
bitcoindrefuses 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.versionsignalsNODE_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-nodenow depends onbtclib-walletdirectly (closes
#1508): btclib 2026.9.29 moveddescriptorsout to it
(btclib-org/btclib#2129), so an unlocked install resolving that
release or later needsbtclib-walletalongside it, which
pip install btclib-nodenow 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_transactionsischeck_scripts(transaction_data, flags, node), and checks the scripts alone: a block's amounts, fees
and sigop cost aremain._validate_block's.history.logmarks 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=rpcno longer
logs the peer lines;-debug,-debug=1or-debug=allstill logs
every one, and-debugexclude=<category>drops one (closes #1609).- Verifying a release's attestation names a new signer and the tag.
gh attestation verifytakes
--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 attachv<version>.attestation.jsonl. A script that
downloads it by name, or passes it togh attestation verify --bundle, uses
the new name. btclib-nodedepends oncryptography, throughbtclib[bip324](issue
#1190). PyPI serves nocryptographywheel for macOS on x86_64 or Windows
on ARM, so therepip install btclib-nodebuilds 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).
-v2transportis on, as in Core, so the node advertisesNODE_P2P_V2and
dials v2 where the address advertises it.-nov2transportturns 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 advertisingNODE_P2P_V2
or carrying exactly a seed's services, a v2 dial the peer drops is not
retried with v1, andaddnodeoraddconnectionwithv2transport
false is refused.
Bitcoin Core accepts v1; SECURITY.md's Where this node departs from
Bitcoin Core says why this node does not.-v2transport=0turns v1 on
by itself, and-v2transport=0 -v1transport=0is 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,
AreInputsStandardorIsWitnessStandardrefuses (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 bysendrawtransactionandtestmempoolaccept, and not
relayed.-acceptnonstdtxnon a test chain accepts them.
-datacarrier,-datacarriersize,-permitbaremultisigand
-dustrelayfeeset the limits. - The mempool refuses a
version=3transaction 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).sendrawtransactionand
testmempoolacceptanswerTRUC-violation,too-large-clusteror
tx-size-small, and the transaction is not relayed. - The JSON-RPC listener answers a source outside loopback only where
-rpcallowipnames it, and-rpcbindalone widens nothing (closes
#1211, closes #1268, closes #1269, closes #1281, closes #1291,
closes #1288). It binds::1and127.0.0.1. A request from any
other source gets a bare 403, asbitcoindanswers it, and-rpcbindis
ignored without-rpcallowip. A client on another host needs both, e.g.
-rpcallowip=<subnet>and-rpcbind=<address>. btclib-nodesets the umask to 0077 on POSIX (closes #1198): the
chain's data directory is 0700 andhistory.log0600, asbitcoind
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.logline is stamped and marked asdebug.logstamps 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
bitcoindreads 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=12xreads 12.-rpcbind,-connect,-addnodeand
addnoderefuse 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). Avoutisvalue,nand ascriptPubKeythat nests
asm,desc,hex,address(where one exists) andtype, where
btclib'sto_dictkepttypeandaddressesbeside it. Avinis
txid,vout,scriptSigandsequence, orcoinbaseandsequence,
withtxinwitnessonly when the witness stack is not empty;asmstays
btclib's.getblockanswersfeeand, at verbosity 3,prevout. A client
written against the earlier shape has to read these. submitblockanswers a reason where it answerednull(closes #1335,
closes #1390, closes #1339). A tip block failingbad-cb-heightorbad-txns-nonfinal
answers that reason, and failing scripts answer a reason beginning
block-script-verify-flag-failed. A caller that tooknullfor
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. Aparamsobject is mapped
onto positions, and a name repeated, unknown or given both ways is refused
withRPC_INVALID_PARAMETER. A hextxidorblockhashof the wrong
length is refused, and so is arawtxwith whitespace. A bare
gettxoutsetinfoanswersmuhash(closes #1387). sendrawtransactionandtestmempoolacceptanswer Core's reject reason
and details, in the order Core checks them (closes #1328, closes #1375,
closes #1371, closes #1373, closes #1447). They applymaxfeerateandmaxburnamount,
and answer-27for 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 ormin_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.-minrelaytxfeesets the floor, in BTC/kvB. Connection.parse_messagestakes the octets read, and
Connection.buffer,p2p.connection.frame_messageand
p2p.connection.frame_message_bytesare gone (issue #1190):
Connectionframes throughp2p/transport.py, which holds
frame_message_bytes. A caller that drove aConnectionby hand passes it
the octets and importsframe_message_bytesfrom there.- The dependency floors rise (closes #1684, issue #1685).
pip install btclib-nodetakesbtclib>=2026.10.5,btclib-wallet>=2026.10.4and
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.generateblockrefuses a WIF of another chain, as Core
does, which btclib-wallet 2026.10.4 makes possible. -datadir,-conf,-blocksdirand-rpccookiefileare 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.testmempoolacceptends the call at the first badrawtx(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_nodechanged in about sixty more places
(issue #1685), for a program that imports it.release.yml's
public-apijob lists each againstv2026.9.24. Among them:
rpc.connection.RequestHeadandRpcConnection's send methods;
RpcManager.server, which takes a list of sockets;Chain.__init__,
which requiresfixed_seeds,headers_sync_paramsand
min_bip9_warning_height;BlockIndex.get_download_candidates,
BlockIndex.get_headers_from_locatorsandMAX_DOWNLOAD_WINDOW, gone;
PeerDB's DNS and sampling helpers, gone; andConfig'srpc_host,
whose default is nowNone. - 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
netdebug category, as Core logs
it, and a payload that does not parse is onenetline without a
traceback.-logratelimit, on by default, caps each source location's
non-debug lines inhistory.logat 1 MiB an hour, as Core does; debug lines
are never capped, and-nologratelimitremoves 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 nexttxwaits. A check with
no verdict after 300 seconds is dropped and logged.sendrawtransaction,
testmempoolacceptand 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_COSTis refusedbad-blk-sigops(closes #1585), as
Core'sConnectBlockrefuses it.