Release notes¶
Notable changes are documented here. CHANGELOG.md is the record behind them: this file says what a user has to act on, that one says what changed and why.
Versions are calendar versions, YYYY.M.D;
between releases pyproject.toml declares the month alone, which is the
shape RELEASING.md gives a cycle in progress. The number says when a
release was cut, and it promises nothing about compatibility, so a
breaking change is announced in this file — read it before upgrading,
rather than a digit.
v2026.10.18¶
Everything below is measured against v2026.10.8. CHANGELOG.md’s own
v2026.10.18 section is the record of everything that went into it.
Breaking changes¶
A client from a source
-rpcallowiprefuses is closed as it connects, with no reply, where it got403 Forbidden(closes #1963).RpcManager.client_allowedis gone.The RPC server holds at most
-rpcmaxconnectionsclients, 16 by default, as Core master does (closes #1953). A client past the limit waits until one leaves. Raise the option if you hold more connections open.getrawmempool trueanswers each entry asgetmempoolentrydoes, and thesizefield is gone (closes #1764). Readvsizeorweight.getpeerinfo’sbytessent_per_msghas no""entry: the v2 handshake’s octets count inbytessentalone, as in Core (closes #1880).The data, blocks, chainstate and index directories are created at most 0700, and
.lockat most 0600, whatever the caller’s umask (closes #1887). A directory that exists keeps its mode. On Windows the directories are created 0777.A refused configuration line or argument, an unknown key’s warning and the configuration log quote at most a 16-character name (closes #1908). A longer name is given by its length, and an unknown key’s warning starts with
file:line. Match on the new text if you parse these messages.Node.stopwaits as long as the stores take to close, and raisesNodeShutdownTimeoutErroronly where what runs before the closes overrunsSTOP_TIMEOUT(closes #1870). A close that never returns holdsstop.KNOWN_TX_INVENTORY_CAPACITYis gone, andKnownTxInventoryis a rolling bloom filter, as Core’s (closes #1743). Like Core’s, it withholds a transaction from a peer about once in a million queries.The reprs of
RequestHead,RpcAuthEntryand_Settingsleave out what may hold a secret (closes #1957, closes #1965): theAuthorizationline, the salt and HMAC, and the sources read.The tables of
rpc.callbacks,callbacks,arg_namesandnamed_only, and ofrpc.help,HELP_TEXTandCATEGORY, hold the methods this release serves.Connection’slast_receive,last_send,connected_timeandaddr_token_timestampstart fromclock.now(), whichsetmocktimeholds on regtest.
New¶
savemempoolandimportmempoolare served, as in Core v31.1 (closes #1746).signmessagewithprivkey,verifymessage,signrawtransactionwithkeyandcombinerawtransactionare served (closes #1538, closes #1400).setmocktimeholds the node’s clock on regtest, a hidden command as in Core (closes #1479).getnetworkinfoanswersnetworkactive,connections,connections_inandconnections_out(closes #1984, closes #1973).-reindex-chainstaterebuilds the chainstate from the stored blocks (issue #1415). It is refused beside-prune. While it runs, the node takes no headers or blocks from peers (closes #1915).Held transactions expire after
-mempoolexpiry=<n>hours, 336 by default, as in Core (closes #1815). A load ofmempool.datexpires them too.
Worth knowing, though nothing raises¶
A transaction that conflicts with held ones replaces them where bitcoind v31.1 would, whatever it signals (closes #1494).
submitpackagereplaces for a parent and its child, and listsreplaced-transactions.On signet, a block whose commitment holds an empty push is checked as Core checks it (closes #1896). Such a block Core accepts was refused.
The node relays the addresses peers gossip, as Core’s
RelayAddressdoes (closes #1867).A
getdatafor a filtered block drops the peer, as Core master does (closes #1949). An unaskedcmpctblockis ignored, as in Core master (closes #1890, closes #1897).A SIGTERM stops the node while its main thread waits on it (closes #1274).
The dependency floors are
btclib>=2026.10.17andbtclib-wallet>=2026.10.16(closes #2003). btclib-wallet 2026.10.9 fails at import beside btclib 2026.10.17.btclib-ecc>=2026.10.2is a runtime dependency, whichsigning.pyandp2p/v2transport.pyimport (#1742).
v2026.10.8¶
The fifth release. Everything below is measured against v2026.10.4.
CHANGELOG.md’s own v2026.10.8 section is the record of everything
that went into it.
Security¶
A refusal quoted a configuration line or a command-line argument whole, and an RPC password in it reached stderr (GHSA-74pj-5cgg-3m66). From 2026.9.4 to 2026.10.4, a configuration line that fails to parse, such as
rpcpassword <pw>ormain.rpcpassword <pw>, and a refused argument, such as-main.rpcpassword=<pw>, were quoted whole. A configuration line starting with-, such as-rpcpassword=<pw>, was quoted in 2026.10.4 alone. Upgrade, and treat an RPC password that such a line or argument may have printed as exposed: a service manager can keep stderr in its journal.Such a line or argument is quoted only up to the first
rpcauth,rpcpasswordorrpcuserin it, which departs from Core, asSECURITY.mdsays. A misspelled name, as in-rpcpasword=<pw>, is still quoted whole.scantxoutset, not yet in a release, does not quote the descriptor in “Cannot derive script without private keys”.
Breaking changes¶
An RPC argument Core refuses is refused (closes #1655, closes #1664, closes #1665). A hash with whitespace in it, an amount with a space, a
+, an underscore, a leading zero,1.or.5, and a request body with a lone surrogate escape are errors, as they are in Core. Check the values you pass.mining.solve_block,rpc.mining.generate_to_addressandgenerate_blockreturn generators, andrpc.mining.get_block_templatedoes for alongpollid(closes #1622) (closes #1606). A program that calls them directly drives the generator, asrpc.maindoes. A JSON-RPC client needs no change:getblocktemplatewaits on alongpollidandwaitforblockheightis served, both refused before.A node given no
-bindalso listens on127.0.0.1:<port + 1>, a target for a Tor onion service, and stops where that port is taken (closes #1666). Free the port or move-port. A-bindturns the default off, and the node then listens on the addresses it names alone.A bare
gettxoutsetinfoanswershash_serialized_3, notmuhash(closes #1598). Pass"muhash"to get the old answer. The call scans every stored coin, as Core’s does, so it takes longer the larger the set.A JSON number no double holds, and
NaN,Infinityand-Infinity, are refused (closes #1826, closes #1830).1e400, or a whole number as large, is answered “JSON double out of range” where a method reads a double, and the three names are a parse error,-32700, as in Core.A full send buffer pauses a peer and never drops it (closes #1775, closes #1789, closes #1805, closes #1812).
MAX_QUEUED_SEND_BYTES,MAX_GETDATA_INFLIGHT_BYTES,MAX_CFILTERS_INFLIGHT_BYTES,MAX_PENDING_GETDATA_ITEMS,MAX_PENDING_CFILTER_HASHES,Connection.queued_send_bytesand the modulebtclib_node.p2p.filter_sizeare gone, andMAX_QUEUED_RECV_BYTESisConnection.recv_flood_size, from-maxreceivebuffer.config.listen_porttakeswhitebindafterbind,Mempool.clustertakesmax_weightin place ofmax_vsize, andConnection.tx_announce_queueis adictused as an ordered set, not a list (closes #1625, closes #1499, closes #1810), for a program that uses them. The tablescallbacksofp2pand ofrpc,arg_names,HELP_TEXTandCATEGORYgained the messages and methods now served.
Worth knowing, though nothing raises¶
At most 16 requests that wait or search run at once, and 64 more queue, as in Core’s defaults for
-rpcthreadsand-rpcworkqueue, which this node does not read. A request past that gets503“Work queue depth exceeded”, so a client holding manywaitforblockheightor long-poll calls open has to keep them under 80.A request sent while the node starts is answered
-28, as in Core (closes #1317). A client that waits for the node by sending a request retries on-28, as it does forbitcoind.-assumevalid=<hash>skips the script checks of the blocks under that block, as in Core (issue #1576). Nothing is assumed valid by default yet: the node verifies every script unless you pass the option. Pass only a hash you have verified, since a block under it with an invalid script can be accepted.A peer is pinged every two minutes, and dropped when its
pongis twenty minutes overdue or when nothing is received from it, or sent whole to it, for twenty, as in Core v31.1 (closes #1768).-maxsendbufferand-maxreceivebufferare read, in thousands of bytes, as in Core, with defaults of 1000 and 5000 (closes #1812).estimatesmartfeeandestimaterawfeeare served fromfee_estimates.datin Core’s format, read at start, written every hour and at shutdown (closes #1543). A file over 60 hours old is not read unless-acceptstalefeeestimatesis set, which is refused off regtest.The mempool is kept across a restart, in
mempool.datin Core’s format: written at shutdown, loaded at start, and turned off by-persistmempool=0(issue #1746).getmempoolinfo’sloadedsays whether the load has ended.A reorg trims the mempool, and a full one evicts the worst chunk, as bitcoind v31.1 does (closes #1823, closes #1740). A package admitted through its child is no longer the first evicted, and the members a trim leaves are kept.
A short-id collision in a
cmpctblockis answered by asking for the block, as in Core (closes #1859).The dependency floors are
btclib>=2026.10.8andbtclib-wallet>=2026.10.8. The first is the release withbtclib.compressor, whichdumptxoutsetreads,btclib.obfuscation, which the mempool file reads, and theShortIdCollisionErrorthat a collision raises (btclib-org/btclib#2570). The second fixes GHSA-62jf-v327-86h5, a private key in a refusal thatscantxoutsetanswers with.
v2026.10.4¶
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.
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,.cookiein the chain’s own data directory (<datadir>/regtest/.cookieunder-regtest), the way a client ofbitcoindreads its cookie, or start the node with an-rpcauthline and give the client that user’s password.A node whose JSON-RPC listener cannot start stops, as
bitcoinddoes (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 arpcpassword=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=trueand-norpccookiefile=0are double negatives, read asrpccookiefile=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 writenorpccookiefile=1for no cookie.A command-line argument the node refuses exits 1, not 2 (closes #1116), after one
Error: ...line on stderr, asbitcoinddoes: 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), thenError: 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=anddebug=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 abitcoin.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 inbitcoin.conf’s default section, offmain, refuses to start, asbitcoindrefuses 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, whichpip 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/mainand--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_V2or carrying exactly a seed’s services, a v2 dial the peer drops is not retried with v1, andaddnodeoraddconnectionwithv2transportfalse 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).sendrawtransactionandtestmempoolacceptanswerTRUC-violation,too-large-clusterortx-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, asbitcoindleaves 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,-addnodeandaddnoderefuse 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 nestsasm,desc,hex,address(where one exists) andtype, where btclib’sto_dictkepttypeandaddressesbeside it. Avinistxid,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-nonfinalanswers that reason, and failing scripts answer a reason beginningblock-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. A
paramsobject 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 baregettxoutsetinfoanswersmuhash(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 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.-minrelaytxfeesets the floor, in BTC/kvB.Connection.parse_messagestakes the octets read, andConnection.buffer,p2p.connection.frame_messageandp2p.connection.frame_message_bytesare gone (issue #1190):Connectionframes throughp2p/transport.py, which holdsframe_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.4andbitcoin-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, solink/..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’spublic-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_paramsandmin_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 onNode’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 onNode’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.
v2026.9.24¶
The third release. Everything below is measured against v2026.9.4:
what changed since, and what it costs to move past it.
CHANGELOG.md’s own v2026.9.24 section is the record of everything
that went into it.
The rpc surface also grew — getblock, submitblock, addnode and
getnetworkinfo join the dispatch table (closes #1006) — which is
additive and costs nothing to move past.
Breaking changes¶
CoinStats.insertand.removeno longer report whether the coin was unspendable, anddigestis a property, not a method (closes #869, btclib-org/btclib#1623).btclib_node.chainstate.muhash.CoinStatsnow inherits both frombtclib.coinstats.CoinStatsrather than defining them itself:insert/.removereturnNonewherev2026.9.4returnedbool(Trueunless the coin was unspendable), andstats.digest()raisesTypeErrorwherev2026.9.4haddigestas a method –stats.digest, with no parentheses, is the replacement. The constructor,serializeanddeserializekeepv2026.9.4’s own shape.tx_out_serandis_unspendableare re-exports of btclib’s functions of the same name:tx_out_serreturns what it did for a well-formed coin and outpoint, and raisesBTClibValueErrororBTClibTypeErrorwherev2026.9.4serialized a malformed one.
v2026.9.4¶
The second release, and the first that is an upgrade from
something. Everything below is measured against v2026.8.27:
what changed since, and what it costs to move past it.
CHANGELOG.md’s own v2026.9.4 section is the record of everything
that went into it.
Breaking changes¶
A data directory written by
v2026.8.27is refused (issue #569). A node upgrading past this change will not start against its existing one, and says so rather than reading it wrongly – one line, wrapped here to fit the page:btclib_node.exceptions.IncompatibleStoreError: <data directory> holds a version 0 store, which this version (1) cannot read: delete the directory and sync again
Delete the data directory and sync again; nothing outside it has to be touched, the blocks, the undo data, the chainstate and the log all living under it. There is no migration to run instead, and the reason is the change itself:
COINBASE_MATURITYwas enforced nowhere because the record could not express it, a stored output carrying no height for anything to ask how deep the coinbase that created it was. The record and the undo data now carry each coin’s height and its coinbase bit, and both are on-disk formats a directory written byv2026.8.27does not hold. Recovering the missing height means reading every block again in order, which is the sync under another name.The store now carries a schema version so that an old directory fails on the first read rather than misparsing a record deep into one. The released version wrote no such stamp, which is exactly what the refusal recognises.
This is the first change to break an installation of
v2026.8.27, that being the first release there was.CHANGELOG.md’s own entry has what changed and why; this one is only what a user has to do.Config(pruned=True)used to construct and do nothing; it now raisesPruningNotImplementedError(issue #574). A caller relying on the old, silently-ignored value was getting a full node that wrote every block to disk regardless of what it asked for –pruned=False, the default, is unaffected. There is nothing to migrate: passpruned=False, or drop the argument, until pruning itself is built (issue #601).The rpc listener’s default port is now Core’s own, not the p2p port plus one (issue #605).
v2026.8.27listened on 8334, 18334, 38334 and 18445 for mainnet, testnet, signet and regtest; it now listens on Core’s 8332, 18332, 38332 and 18443, which is wherebitcoin-cliand anything else written against Core looks. A client or a firewall rule pointed at an old default has to move; a caller passingrpc_port=explicitly is unaffected.A storage fault while connecting a block used to be recorded as that block’s own rejection, silently, and the node kept running; it now stops the node (issue #620). Where a node exits this way, do not restart it before reading the log for the exception and clearing whatever the store or disk reported – restarting against the same fault reaches the same exit again.
A kill, a crash, or anything else that stops the node without going through a clean shutdown can now cost revalidating up to a few dozen of the most recently connected blocks the next time it starts (issue #586). A datadir this happens to is not corrupted and needs no repair: the node simply offers those blocks to itself again, the same way it would a block arriving for the first time, and the store never ends up holding a UTXO set, a block status or a filter more advanced than the other two. A clean stop –
SIGINT,SIGTERM, or thestopRPC – is unaffected and loses nothing: the store is flushed before it closes either way, and this cost is only ever paid by the shutdown that skips that step.A corrupted, node-owned
utxo-record read back while accepting a transaction into the mempool used to be answered as that transaction’s own refusal, and could get the peer that sent it discouraged; it now answers as this node’s own fault instead (issue #631). Corrupted here means what the store’s own checksum catches, raised asStoreCorruptionError(issue #641):sendrawtransactionanswers an internal-error response rather thanVERIFY_REJECTED/"Invalid signatures or script";testmempoolacceptanswers the same internal-error response for the whole batch, rather than the one entry’s own reject-reason (issue #668); the peer-to-peer path no longer discourages a peer for exposing this node’s own corrupted storage. Read the log forStoreCorruptionErrorrather than trusting any of them. A record whose bytes pass that checksum and still cannot be parsed is a different case, answered as absent (issue #650): the spend is refused as"Missing prevouts", exactly as a genuinely missing prevout is, and nothing is logged – which is what Core’s ownCCoinsViewDB::GetCoinanswers for the same record.The store is now RocksDB, not
sqlite3; a data directory written by an older release cannot be read (issues #637, #641). A node upgrading past this change refuses its existing directory rather than reading it wrongly:btclib_node.exceptions.IncompatibleStoreError: <data directory> holds a sqlite3 database, which this version cannot read: delete the directory and sync again
Delete the data directory and sync again; there is no migration from the old store’s own
.sqlitefile into RocksDB’s own format. This is the same shape of refusal, and the same remedy, as the schema-version one above – it is a second, independent reason the same directory can now be refused, not a repeat of it. What is gained for the cost: a bit flipped on disk is now caught at the read that meets it, the same per-block checksum Bitcoin Core’s own LevelDB store already carries, where the old store answered a corrupted value silently and could lose a corrupted key without ever reading it at all.scripts/chains/mainnet.py,testnet.pyandsignet.pyare gone (issues #583, #581, #573).pip install btclib-nodenow putsbtclib-nodeonPATH; runbtclib-nodein place ofpython scripts/chains/mainnet.py,btclib-node -testnet/-signet/-regtestin place of the other two, andbtclib-node -hfor every flag.btclib-node -conf=<file>reads an existingbitcoin.confthe way Core reads one.Config(pruned=True)now builds a node and actually prunes, instead of raisingPruningNotImplementedError(issue #601). A caller catching that exception around the constructor no longer has one to catch;pruned=False, the default, is unaffected. A pruned node keeps only the last 288 blocks and their undo data on disk and deletes the rest as the chain advances – there is no-prune=<n>MiB target and nopruneblockchainRPC, only whether pruning is on. Nothing to migrate for an existing, unpruned data directory: pruning only ever removes data going forward from when it is first turned on.-prune=<n>now matches Core’s own manual/automatic split, instead of collapsing every nonzero<n>to the fixed depth above (issue #705).-prune=1is manual pruning: nothing is deleted on its own any more, only the newpruneblockchainRPC deletes, and only when asked – a node started with-prune=1expecting the old automatic deletion now has to call that RPC itself, or use-prune=550or higher for automatic pruning to a MiB target instead.-prune=<n>from2to549now refuses to start rather than pruning to the fixed depth, Core’s own wording: too small a target to actually run a node on.-prune=<n>at550or above is new: automatic pruning to roughly<n>MiB on disk,getblockchaininfo’s ownautomatic_pruningandprune_target_sizeanswering for it.A mempool candidate is now also checked against Core’s own relay policy, not only consensus (issue #810).
v2026.8.27held a transaction togetblockchaininfo’s activation-gated consensus rules alone; a script only a standardness rule refuses –CLEANSTACKamong them – now gets the transaction dropped rather than accepted, matching what a real Bitcoin Core peer would refuse to relay or mine in the first place.sendrawtransactionanswersVERIFY_REJECTED/"Invalid signatures or script"for one,testmempoolacceptreports it not allowed, and the peer that relayed it over p2p is kept rather than discouraged – Core’s own policy is not to penalise a peer for forwarding a transaction only the non-mandatory rules refuse. Nothing to migrate: a transaction built to consensus rules alone and relying on this node’s mempool to hold it despite failing standardness has to be built to a standard script instead, the same script a real network would have refused it over regardless.
Windows¶
pip install btclib-nodenow claims Windows (issue #430): its classifiers name it, andtest.yml’s gate checks the claim on every pull request.
v2026.8.27¶
The first release of btclib-node. Nothing here is an upgrade: no
version of this package has ever been on an index, so there is no
installation for this one to change the behaviour of and nothing to
read these notes against. pip install btclib-node reaches a released
btclib-node for the first time with this version.
What it is, and what it is not, is README.md’s: a bitcoin node whose
consensus and network code is python, over
btclib. It has downloaded and
validated the whole chain. Its Development Status classifier says
3 - Alpha and means it — the interfaces are not promised stable, and
this file is where a break in them is announced from the next release
on.
CHANGELOG.md’s own v2026.8.27 section is the record of everything
that went into it, which for a first release is the whole history
rather than a cycle’s worth.
Two things to know before installing¶
The JSON-RPC listener binds every interface and authenticates nothing. SECURITY.md carries that and the rest of what is known. Do not expose it.
Node.__init__does not install signal handlers (#436). If aNodeyou build is meant to stop on an operator’sSIGINT,SIGTERMorSIGTSTP, callinstall_signal_handlers(node)for it, the wayscripts/chains/does right after building the node each of them starts. This is listed here rather than under a Breaking changes heading on purpose: nothing published can have broken, there having been nothing published, and the change is a break only against the unreleased tree — anyone who was running this from git before #467 landed is the only reader it can surprise.