Repository navigation
Release Notes - Counterparty Core v11.6.0 (2026-11-26)
This release fixes a mainnet txlist_hash and messages_hash divergence between nodes that restarted and nodes that kept running, and fixes XCP supply accounting for AMM pool usage fees, which introduces one protocol change. It also makes nodes check for mandatory upgrades continuously and report their protocol compatibility through the API and health checks, returns structured MPMA decoding errors from the API, stops the server from hanging when the API process exits unexpectedly, and updates dependencies for security advisories.
All node operators must upgrade before mainnet block 981,400, expected around 2026-12-22. No pool fee has ever been charged on mainnet, testnet4 or signet, so the change is not expected to affect any block, but nodes that have not upgraded by then are no longer guaranteed to agree with the network.
Upgrading
To upgrade, download the latest version of counterparty-core and restart counterparty-server.
Mainnet nodes roll back to block 973,417 on first start and re-parse the blocks since. This also rebuilds the State DB: approximately 30 minutes on mainnet, during which the API is unavailable. For Kubernetes deployments, the dedicated health listener (/healthz/live and /healthz/ready, port 4002 by default on mainnet) reports that rebuild as in v11.5.0: liveness returns 200 and readiness returns 503 rebuilding. No balance changes: the re-parse only restores the utxomove transactions that a node which restarted in the middle of a chain of them failed to record (see Consensus Determinism), so that every node converges on the same txlist_hash and messages_hash.
On testnet3, testnet4 and signet, no reparse, rollback or State DB rebuild is required, and the API stays available throughout. The protocol change activates ahead of every chain tip.
Nodes still running v11.4.0 or earlier must roll back before starting v11.6.0. Database upgrade actions only run for the version being installed, so skipping v11.5.0 also skips its rollback to the require_reveal_source_signature activation height. A running v11.4.0 node only checked minimum versions at startup, so it may have kept parsing past that height with the old rule. Run counterparty-server rollback 969320 (testnet3: 5151805, testnet4: 154564, signet: 324359) once with v11.6.0 installed, then start the server. This rolls back both the Ledger DB and the State DB, and also covers the v11.6.0 rollback to block 973,417 on mainnet. Alternatively, bootstrap again.
With Docker Compose:
cd counterparty-core
git pull
docker compose stop counterparty-core
docker compose --profile mainnet up -dor use ctrl-c to interrupt the server:
cd counterparty-core
git pull
cd counterparty-rs
pip install -e .
cd ../counterparty-core
pip install -e .
counterparty-server startcounterparty-server bootstrap now downloads new v11.6.0 snapshots from https://bootstrap.counterparty.io. They come from a full sync with v11.6.0, so a bootstrapped node needs no rollback or re-parse.
The protocol change activates at the following block heights, the blocks each chain is expected to reach around 2026-12-22:
| Network | fix_pool_fee_destruction |
|---|---|
| Mainnet | 981,400 |
| Testnet3 | 5,420,600 |
| Testnet4 | 168,700 |
| Signet | 336,400 |
Testnet3 block times are too erratic for this estimate to be reliable. The change is enabled from block 0 on regtest.
ChangeLog
Consensus Determinism
- Rebuild the UTXO balances cache by replaying the recorded
utxos_infoof every parsed transaction, instead of loading thebalancestable plus special cases (KNOWN_SOURCESdescendants and invalid attaches). While parsing, the first non-OP_RETURN output of everyattach, and of every transaction spending a cached UTXO, is added to the cache even when no asset reaches that output, and a later spend of such a "phantom" UTXO is recorded as autxomovetransaction that moves nothing. A node that restarted, rolled back or handled a reorg in the middle of such a chain rebuilt the cache without the phantom entry and silently stopped recording the chain, so itstxlist_hashandmessages_hashdiverged from nodes that kept running. On mainnet, the validattach86a3d0a5…085482at block 973,405 attached to its third output while its first output entered the cache; its first output was spent at block 973,417 and started a chain of tenutxomovetransactions, seven of which are missing on nodes that restarted after block 973,422. The cache rebuild is now a deterministic function of the Ledger DB, and an automatic rollback to block 973,417 (mainnet only) re-parses the chain so that every node converges on the freshly synced history. No protocol rule changes and no balance is affected. - Add checkpoints at mainnet block 977,181, after the restored
utxomovechain, testnet4 block 162,933 and signet block 332,141. As in v11.5.0, a node whose stored history disagrees with a checkpoint refuses to start and reports recovery guidance.
Protocol
- Record XCP destruction when a nonzero pool deposit, pool withdrawal, or fairminter pool-creation fee is charged (
fix_pool_fee_destruction). This keeps XCP supply and asset conservation consistent with the debited balances, including the API's supply projection. Before the fix, the first such fee would have failed the asset conservation check and stopped the node. Trading fees retained in pool reserves are unaffected. No such fee has been charged on mainnet, testnet4 or signet, so no historical block is affected.
Upgrade Compatibility
- Refresh published minimum-version requirements in a background thread every five minutes, including in API-only mode. Previously they were only checked when the server started.
- Expose cached protocol compatibility in the API root, response headers and health readiness. Before activation, report a pending upgrade without blocking service. At a known unsupported activation height, stop parsing before writing the block and return
503 protocol_upgrade_requiredfor ordinary API requests. Diagnostic endpoints remain available and liveness stays separate. See Protocol upgrade signals. - Retain known upgrade requirements during metadata outages and report stale or unknown verification explicitly.
--forceremains an explicit, advertised unsafe bypass. This mechanism changes no protocol rule, activation height or ledger format. - Verify upgrade metadata at startup before any
UPGRADE_ACTIONSreparse, so reparsed blocks are checked against the published requirements.
API
- Return MPMA decoding failures, including malformed address tables and recipient indexes past the end of the table, through the existing
message_data.errorresponse (HTTP 200) of/v2/transactions/unpackand/v2/transactions/info, rather than a generic HTTP 503 and unexpected-error reports. Verboseunpacked_datareports the specific error instead of the generic "Could not unpack data". Historical data still requires its originalblock_index; omitting it uses the current height's protocol rules. This does not change consensus decoding or accept legacy messages under current rules. - Report Waitress connection admission (accepted connections, socket-map occupancy against the connection limit, overflow state and per-minute peaks) in
/healthz/metricsand theWORKER_STATSlog, to tell admission pressure apart from busy workers. Diagnostics only: readiness and liveness are unchanged. - Include the API routes in flight in the worker-pool saturation warning (
active_routes, the eight busiest plus a remainder count), to show which endpoints hold the workers. Routes are logged as their registered templates (for example/v2/assets/<asset>), never the request URL, query string or client.
Mempool
- Compact the unsupported-transaction cache to 900,000 entries at its 1,000,000-entry limit, including when restoring a full cache. New hashes append between compactions instead of triggering a full-file rewrite on every mempool batch. Snapshots are written to a temporary file and atomically replaced, preserving the previous file if writing or replacement fails. The cache format and transaction validation rules are unchanged.
Reliability
- Shut down instead of hanging forever when the API process stops unexpectedly, for example on
Address already in useat startup. The main process blocked on amultiprocessing.Eventthat the exited API process could no longer acknowledge; the API stop signal is now a lock-free shared flag.
Bootstrap
- Download signed bootstrap snapshots from
https://bootstrap.counterparty.ioso the storage backend can be migrated without another client URL change. Snapshot filename format and signature verification are unchanged. - Publish new v11.6.0 bootstrap snapshots for mainnet, testnet4 and signet, from a full v11.6.0 sync, and select them by default. They already include the
utxomovetransactions restored by the UTXO balances cache fix.
Codebase
- Bump
pyo3to 0.29.3 (RUSTSEC-2026-0176, RUSTSEC-2026-0177),rustlsto 0.23.46 andrustls-webpkito 0.103.16 (RUSTSEC-2026-0049, -0098, -0099, -0104, -0285, -0346, -0348, -0349) incounterparty-rs. - Bump
quinn-prototo 0.11.19,rustlsto 0.23.46,rustls-webpkito 0.103.16 andwebpki-root-certsto 1.0.10 incounterparty-client(RUSTSEC-2026-0338 to -0342, RUSTSEC-2026-0346 to -0349, RUSTSEC-2026-0382, RUSTSEC-2026-0383), and triage the unmaintainedunsafe-libyamland standalonezbuscrates in the audit configuration. - Bump
quinn-udpto 0.5.16 (RUSTSEC-2026-0538) andrustixto 1.1.6 (RUSTSEC-2026-0486) incounterparty-client, andlibz-systo 1.1.33 (RUSTSEC-2026-0544) incounterparty-rs. - Bump
urlto 2.5.9 (RUSTSEC-2026-0592) incounterparty-client. - Bump
tokioto 1.53.3 incounterparty-rsandcounterparty-client(RUSTSEC-2026-0386), and replace the client's yankedasync-executor1.14.0 with 1.14.1. - Remove the native extension's unused
bip32dependency and update the lockedlibz-sys,zstd-sysandanyhowdependencies to their advisory-fixed versions. - Bump
Werkzeugto 3.1.9 (GHSA-g6x2-hccm-hh4m). The advisory only affects nodes running on Windows. - Record the plain host name instead of
socket.getfqdn()in the migration log. Where the host name does not resolve, as on GitHub's macOS runners, eachgetfqdn()waited about 35 seconds on reverse DNS, once per applied migration, which slowed State DB builds by minutes and the macOS unit tests from about 15 minutes to about 100. - Build
counterparty-rswith GCC 15 (Ubuntu 26.04). The bundled RocksDB 8.10 headers useuint64_twithout including<cstdint>, which GCC 13 tolerated;counterparty-rs/.cargo/config.tomlnow passes-include cstdintto the C++ compiler. ACXXFLAGSalready set in the environment takes precedence.
Credits
- Ouziel Slama
- Adam Krellenstein
- Dan Anderson
- Zachary Alexander