l0rinc
commented at 6:38 AM on October 22, 2026:
contributor
Draft demo: this is meant to showcase what complete AssumeUTXO removal could look like and the simplifications that AssumeUTXO currently prevents.
The decision about complete removal is of course still open. This draft is meant to serve as a concrete reference for the smaller proposals below - it's not meant to be merged.
Smaller PRs: I will carve out individual changes to gauge interest in each part, and link them here as they are opened.
Some of the findings are useful even if snapshot loading or background validation stays.
Feedback on which parts seem worth pursuing, and in which order, is welcome.
Motivation: this follows our in-person discussion at the October 2026 Core Dev meeting.
My impression was that there was rough agreement about the ambiguity background validation introduces: we trust a snapshot enough to use it immediately, but describe that trust as temporary until the same node finishes checking history.
Multiple chainstates affect much more than snapshot loading: ordinary validation changes have to account for different chainstate roles, candidate sets, notifications, downloads, pruning, cache allocation, database lifetimes and locks.
I am not sure this amount of complexity in the most critical part of our codebase is still worth it, given that adoption isn't where we hoped it would be.
Ordinary IBD is also getting faster: #35295 is already merged, and the upcoming pruneassumevalid will make pruned IBD even faster.
Snapshot bootstrapping without background validation can still offer an advantage: a new node becomes usable before ordinary IBD would finish because snapshot loading time scales with the UTXO set size, while ordinary IBD time scales with the blockchain size.
Whether that is worth its maintenance cost is a fair question, and we can discuss it here or in the dedicated PR where I will propose the removal.
Even after removal, we could decide to add it back in a cleaner way, for example isolated through IPC.
This demo makes that cost, and the code we could remove, visible for that discussion.
Background validation can be considered separately: if we keep snapshot loading, I would prefer making its trust assumption explicit and distributing verification across ordinary IBD nodes, as proposed in #32377 and #36543.
That could give us wider independent checking of the commitment without making every snapshot user maintain a second chainstate.
Users who want to validate history themselves and transition to an archival node could rebuild with -reindex and pruning disabled.
Alternatively, they could run IBD in a separate datadir while their snapshot node remains usable, then switch once it is ready.
@Sjors's #36557 discusses dropping mandatory background sync and these alternatives.
What the series demonstrates:
After the fixture cleanup in #36601, the next eight commits remove background validation while snapshot loading keeps working, a stopping point that can be reviewed on its own.
The middle commits remove snapshot imports and startup resumption, then the validation, block storage, notification and release-process special cases they needed.
The final seven commits add the simplifications this removal enables: startup in one pass, stable database ownership, one download path, a single prune height, and removal of the locks and diagnostics used to select and identify chainstates.
Ordinary validation, -assumevalid, pruning, ChainstateManager and UTXO export (dumptxoutset) remain.
#36946 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36946.svg"></sub> (scripted-diff: [test] Add util/check.h includes for assertions by maflcko)
#36904 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36904.svg"></sub> (log: Remove trailing and embedded newlines from log messages by maflcko)
#36876 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36876.svg"></sub> (GUARDED_BY annotations for nTx, m_chain_tx_count by Crypt-iQ)
#36858 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36858.svg"></sub> (refactor: break the blockstorage/validation circular dependency by pzafonte)
#36856 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36856.svg"></sub> (kernel: add manual pruning by pzafonte)
#36854 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36854.svg"></sub> (kernel: let callers create the block manager by pzafonte)
#36844 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36844.svg"></sub> (iwyu: Fix warnings in more modules in src/ and treat them as errors by hebasto)
#36827 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36827.svg"></sub> (test: Kill validation mutants by Zeegaths)
#36808 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36808.svg"></sub> (iwyu: Fix warnings in src/test/fuzz and treat them as errors by hebasto)
#36790 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36790.svg"></sub> (p2p: ignore historical blocks when counting blocks in flight by sashaphmn)
#36778 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36778.svg"></sub> (AssumeUTXO: replace loadtxoutset RPC with a startup arg by l0rinc)
#36768 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36768.svg"></sub> (kernel: Dispatch log callbacks with btcsignals by ryanofsky)
#36739 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36739.svg"></sub> (refactor: pass BlockManager to ChainstateManager by pzafonte)
#36738 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36738.svg"></sub> (refactor: move block writes and pruning into BlockManager by pzafonte)
#36735 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36735.svg"></sub> (validation: delete pruned files after a failed flush by pzafonte)
#36702 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36702.svg"></sub> (validation: don't treat snapshot block as linked on startup by shuv-amp)
#36629 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36629.svg"></sub> (Add output script index and corresponding script history RPC by andrewtoth)
#36621 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36621.svg"></sub> (node: batch block file pruning in a single pass over block index by mutatrum)
#36603 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36603.svg"></sub> (Improve loadtxoutset performance by ajtowns)
#36543 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36543.svg"></sub> (validation: check the most recent AssumeUTXO commitment during IBD by l0rinc)
#36542 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36542.svg"></sub> (AssumeUTXO: allow retrying loadtxoutset after an interrupted load by l0rinc)
#36520 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36520.svg"></sub> (interfaces: Avoid node crashes from invalid Chain IPC calls by ryanofsky)
#36503 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36503.svg"></sub> (rpc: reject AssumeUTXO rollback without tip data by l0rinc)
#36500 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36500.svg"></sub> (AssumeUTXO: reject duplicate coins and empty snapshot groups by l0rinc)
#36452 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36452.svg"></sub> (validation: fix false corruption errors after pruning or AssumeUTXO by l0rinc)
#36372 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36372.svg"></sub> (p2p: replace full outbound peers that don't support tx relay (take 2) by fjahr)
#36346 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36346.svg"></sub> (validation: don't accept txs to the mempool while loading a snapshot by 0xShadowX)
#36326 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36326.svg"></sub> (kernel: Use typed errors for fatal and flush error notifications by arejula27)
#36257 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36257.svg"></sub> (qa: assert_equal -> assert_true/assert_false by hodlinator)
#36220 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36220.svg"></sub> (rpc: report background validation progress in getchainstates by arejula27)
#36167 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36167.svg"></sub> (build: Enable -Wunused by fanquake)
#36149 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36149.svg"></sub> (validation: Leave some pruned blocks in m_blocks_unlinked, fix another nSequenceId issue by mzumsande)
#36042 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36042.svg"></sub> (build: Bump g++ minimum supported version to 13 by maflcko)
#36000 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36000.svg"></sub> (validation: prefetch blocks while connecting by l0rinc)
#35731 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35731.svg"></sub> (Indexes: Harden the flush-error notification invariant by arejula27)
#35591 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35591.svg"></sub> ([DO NOT MERGE] Erlay: bandwidth-efficient transaction relay protocol (Full implementation) by sr-gi)
#35557 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35557.svg"></sub> (kernel, validation: Add btck_chainstate_manager_set_clock_time by ryanofsky)
#35522 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35522.svg"></sub> (refactor: Extract per-message helpers from SendMessages() (move-only) by pablomartin4btc)
#35229 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35229.svg"></sub> (refactor: Use CBlockIndex parameters as reference by optout21)
#35003 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35003.svg"></sub> (validation: improve block data I/O error handling in P2P paths by furszy)
#34864 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/34864.svg"></sub> (coins: tighten cache entry state invariants by l0rinc)
#34778 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/34778.svg"></sub> (logging: rewrite macros to enforce restrictions at compile-time, improve efficiency and usability by ryanofsky)
#34775 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/34775.svg"></sub> (kernel: allow only one global logging connection by stickies-v)
#34360 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/34360.svg"></sub> (bench: add WalletBalanceManySpent for high-history wallet scenario by w0xlt)
#33324 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/33324.svg"></sub> (blocks: add resumable reobfuscation for existing block files by l0rinc)
#32468 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/32468.svg"></sub> (rpc: generateblock to allow multiple outputs with custom payouts by polespinasa)
#29256 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/29256.svg"></sub> (log, refactor: Allow log macros to accept context arguments by ryanofsky)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
LLM Linter (✨ experimental)
Possible places where comparison-specific test macros should replace generic comparisons:
src/test/kernel/test_kernel.cpp: BOOST_CHECK_THROW((ChainMan{context, chainman_opts}), std::runtime_error) → Prefer BOOST_CHECK_EXCEPTION with a predicate that checks the expected error message.
test/functional/feature_init.py: assert index_files == {path.name: sha256sum_file(path) for path in index_dir.iterdir()} → assert_equal(index_files, {path.name: sha256sum_file(path) for path in index_dir.iterdir()}).
<sup>2026-11-27 11:19:58</sup>
DrahtBot added the label CI failed on Oct 22, 2026
l0rinc force-pushed on Oct 22, 2026
ismaelsadeeq
commented at 10:46 AM on October 22, 2026:
member
Concept ACK.
Following on from what we discussed in person: a feature-ready, usable assumeUTXO is with P2P utxo snapshot sharing, no background validation, and potentially on by default. I don't think it's a state we want to be in.
That variant of assumeUTXO trusts the whole money supply and UTXO set without ever reconstructing it. Making that the default new user experience, for the dominant full node implementation, is a shift in what running a node means, I'd rather we lean on fewer assumptions, e.g. even removing assumevalid as default.
If the feature-ready version lands and most new nodes come up from a snapshot and never pull the history, then over time the archival nodes thin out and validating/having the chain's history becomes something only a handful of nodes still do. Worst case, you can recover your funds but not the history. Pruning already nudges us that way (though it's not on by default, and most users only prune when they actually need to), but a snapshot default would speed it up. It's a bit of an extreme scenario, but I don't think it's an implausible state to be in, if the direction is future ready assumeUTXO.
And as discussed, as-is it's not even that usable, loading the snapshot takes too long. I remember giving up when trying it for the first time. (This can be fixed though)
I've also hit a maintenance cost directly. e.g. in #34075 we do block building, and query the tip which needs the chainstate, and multiple chainstates make that harder than it should be. Any node component that needs chainstate has no guarantee the chainstate it grabbed is still live, and the active one can get swapped under it, so you end up holding onto the chainstate manager and re-fetching the active chainstate every time instead of just keeping a stable handle. The last seven commits here show what you get back once this is gone.
I do think there's probably still a group of users who'd want assumeUTXO like snapshot bootstrapping. But I'd rather that live outside the dominant full node, libbitcoinkernel c header api should gives downstream projects a way to embed a ready UTXO set without risking a consensus split? and with LLMs now, that node-like projects can easily be vibe coded.
Snapshot loading scales with the UTXO set size while IBD scales with chain length indeed, so there is some argument on the linear growth concern and that #35295 and your pruneassumevalid idea don't fully close that gap for a new node that validates/semi validates the chain history, and that gap only grows as the chain gets longer.
That's a genuine advantage of assumeUTXO. But I don't think it's worth the complexity and assumptions it adds to the the reference implementation.
@l0rinc should we do it through the usual deprecate then remove style? Also thanks for putting the demo together, having the removable code and the simplifications it shows is nice to see.
DrahtBot removed the label CI failed on Oct 22, 2026
ariard
commented at 2:30 AM on October 24, 2026:
contributor
After the amount of time spent reviewing and testing assumeutxo, some folks might have a Stockholm syndroma removing assume utxo and me not the last...
More technically, it would has been possible to find an intermediary technical solution, where we would have kept the AssumeUTXO feature has an optional special build flag side-companion process available through a new ipc/capnp/sidevalidation.cpp. Somehow, the folks who wish to use AssumeUTXO would be able to do so, and this would ease diminish the maintenance burden for the libbitcoinkernel folks.
On a more usage level, I did share few ideas in the past on how to use AssumeUTXO for second-layers reputation systems, see here. Never been practical, though it would have been interesting for second-layers nodes, as they would have been able to join the system "on-the-fly" by leveraging assumeutxo activate chainstate.
Sjors
commented at 4:43 AM on October 24, 2026:
member
This draft is meant to serve as a concrete reference for the smaller proposals below - it's not meant to be merged.
This is fine and useful.
But to be clear, I'm concept NACK on actually removing AssumeUTXO.
I think we should drop background validation first, as I suggested in #36557. After that we can reconsider if code complexity is still too high.
@ismaelsadeeq wrote:
That variant of assumeUTXO trusts the whole money supply and UTXO set without ever reconstructing it. Making that the default new user experience, for the dominant full node implementation, is a shift in what running a node means, I'd rather we lean on fewer assumptions, e.g. even removing assumevalid as default.
(nit: the total supply can easily be checked against the issuance schedule. The distribution of the supply can't be checked.)
I don't think we should revisit -assumevalid in a discussion of removing AssumeUTXO, but it does raise an important point: we already allow users to skip part of validation and we even do it by default. And indeed perhaps we shouldn't, if the goal is to have every user verify everything even if they don't care and don't want to.
If the feature-ready version lands and most new nodes come up from a snapshot and never pull the history, then over time the archival nodes thin out and validating/having the chain's history becomes something only a handful of nodes still do.
Between the current reality of hardly anyone using AssumeUTXO, and the scenario you're describing, I think many decades will pass. By 2050 the blockchain might be 4 TB. The worst case UTXO set growth by then is 3+ TB, but at the current trend it might only be 35 GB.
100x less stuff to download (and process) creates a strong incentive for new users to use a client that does offer AssumeUTXO. It's a similar dynamic as with RBF: there's a limit to how far we can push against individual incentives to achieve network health. That goes for miner and for (non-miner) user incentives.
Also note that a user who didn't fully validate from genesis is still useful to the network if they provide mempool and (compact) block relay.
The big unpredictable factor here is Moore's law. In the optimistic scenario you'll download 4 TB in a few minutes in even the poorest and remote places on Earth. In a worst case scenario of technological regression, with a few quantum computers still surviving so we can't use compact signatures, everyone will just be using SPV or custodial wallets, because even after IBD keeping up with the chain would be too much.
@l0rinc wrote:
Even after removal, we could decide to add it back in a cleaner way, for example isolated through IPC.
I'm fine with refactoring things towards a cleaner approach, but it's not realistic to expect that if we remove this, it's going to come back. I'm also not convinced that the feature is so problematic that it needs to be temporarily removed. Even UPnP wasn't removed, merely disabled by default after the RCE vulnerabilities, but AssumeUTXO is already opt-in (and should stay that way).
DrahtBot added the label Needs rebase on Oct 26, 2026
l0rinc force-pushed on Nov 4, 2026
sedited referenced this in commit e319d30685 on Nov 4, 2026
DrahtBot removed the label Needs rebase on Nov 4, 2026
l0rinc force-pushed on Nov 4, 2026
DrahtBot added the label Needs rebase on Nov 5, 2026
l0rinc force-pushed on Nov 11, 2026
DrahtBot removed the label Needs rebase on Nov 11, 2026
DrahtBot added the label CI failed on Nov 11, 2026
DrahtBot
commented at 10:39 AM on November 11, 2026:
contributor
<!--85328a0da195eb286784d51f73fa0af9-->
🚧 At least one of the CI tasks failed.
<sub>Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/42987432513/job/130411864826</sub>
<sub>LLM reason (✨ experimental): CI failed because the IWYU check modified src/node/blockstorage.h, and the resulting diff caused the include-check script to exit with status 1.</sub>
<details><summary>Hints</summary>
Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:
Possibly due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
A sanitizer issue, which can only be found by compiling with the sanitizer and running the
affected test.
An intermittent issue.
Leave a comment here, if you need help tracking down a confusing failure.
</details>
l0rinc force-pushed on Nov 11, 2026
DrahtBot removed the label CI failed on Nov 11, 2026
DrahtBot added the label Needs rebase on Nov 12, 2026
l0rinc force-pushed on Nov 13, 2026
instagibbs
commented at 3:36 PM on November 13, 2026:
member
concept ACK
Similar to #36598 (comment) , I've been mulling on the future of this feature.
I think the grand vision for the feature is too limited to actually be of general use. The current feature is incomplete, and not particularly fast, and is not a bandwidth saver either.
The purpose of the feature was to capture marginal users that would not have run a node, but now will, at a subtly different trust model. My prior is to doubt this, and all subsequent evidence has been one sided sadly. Node-in-a-box, as far as we know, continued what they've always done,
Grand future aside, the code has also been a long source of bugs, of varying severity. I can't speak to who's "fault" this is, but given the current architecture, it's a simple reality. This is ongoing maintenance cost which means it shouldn't simply be ignored. We should complete the project, or cut our losses and harden the codebase we have left.
DrahtBot removed the label Needs rebase on Nov 13, 2026
DrahtBot added the label CI failed on Nov 13, 2026
DrahtBot
commented at 6:41 PM on November 13, 2026:
contributor
<!--85328a0da195eb286784d51f73fa0af9-->
🚧 At least one of the CI tasks failed.
<sub>Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/43453044407/job/131979961282</sub>
<sub>LLM reason (✨ experimental): CI failed because IWYU changed include directives in src/rpc/blockchain.cpp, causing the include-check to detect uncommitted formatting changes.</sub>
<details><summary>Hints</summary>
Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:
Possibly due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
A sanitizer issue, which can only be found by compiling with the sanitizer and running the
affected test.
An intermittent issue.
Leave a comment here, if you need help tracking down a confusing failure.
</details>
l0rinc force-pushed on Nov 13, 2026
DrahtBot added the label Needs rebase on Nov 16, 2026
l0rinc force-pushed on Nov 17, 2026
DrahtBot removed the label Needs rebase on Nov 17, 2026
DrahtBot removed the label CI failed on Nov 17, 2026
DrahtBot added the label Needs rebase on Nov 20, 2026
l0rinc force-pushed on Nov 24, 2026
DrahtBot removed the label Needs rebase on Nov 24, 2026
DrahtBot added the label CI failed on Nov 25, 2026
DrahtBot
commented at 12:07 AM on November 25, 2026:
contributor
Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:
Possibly due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
A sanitizer issue, which can only be found by compiling with the sanitizer and running the
affected test.
An intermittent issue.
Leave a comment here, if you need help tracking down a confusing failure.
</details>
DrahtBot added the label Needs rebase on Nov 25, 2026
test: prepare coverage for AssumeUTXO removal
Preserve tip notifications, candidate rebuilding and explicit rollback exports before removing mixed snapshot tests.
Keep the existing snapshot-first cache split after the snapshot reaches tip.
Remove the IBD-exit resize trigger and the allocation reversal that prioritizes historical validation.
Activation and startup still resize caches while snapshot loading is supported.
The existing allocation test no longer needs to force IBD to select this split.
cc9381aca9
rpc: remove background validation progress
Remove the backgroundvalidation object from getblockchaininfo and its dedicated assertions.
Snapshot import, background validation and the getchainstates diagnostic remain available.
be99bfe0c5
wallet: remove background progress hints
Use the ordinary missing-block rescan errors instead of making wallets depend on background progress.
Keep the snapshot wallet-load restriction and describe explicit reindex recovery.
Update only the existing error assertions while background validation and wallet scenarios remain supported.
9c977b02c8
index: stop following the historical chainstate
Use the active chain and existing block-availability checks for index startup.
Reject snapshot imports while indexes are running and remove automatic index restarts at snapshot completion.
Keep background validation and its network-service restoration.
The existing snapshot test starts indexes on its ordinary restart after historical validation completes.
950321bb4b
validation: stop historical synchronization
Download blocks only for the active chain and stop historical activation at its common entry point.
Keep the guard with download removal so startup and direct callers cannot advance incomplete historical candidates.
Adapt the existing import, wallet and native scenarios to stopped history and explicit reindex recovery.
Attempt startup completion only at the snapshot base because stopped history may end on a different fork.
0291660f03
validation: delete historical activation callers
Historical activation is already disabled. Remove its callers in ProcessNewBlock and ActivateBestChains.
Remove completion handling from ConnectTip and the remaining network-service callback.
Keep periodic flushing and the genesis interrupt ordering.
Snapshot imports and startup resumption remain supported.
35d10b7360
validation: delete background completion
Remove historical UTXO hashing, its failure handling and the restart-time directory normalization it drove.
Remove the hash-mismatch test and reuse the completion scenario to check that restart keeps the snapshot assumed.
Snapshot loading still checks the compiled commitment before activation.
Snapshot databases now remain assumed across restart until explicitly discarded by reindexing.
Previously completed imports can be normalized with a compatible older release before upgrading.
Remove background progress and prefixes from the existing tip-log helper.
ba4f5f5a1b
rpc: stop new snapshot imports
Retire loadtxoutset after background validation has been removed independently.
Keep a hidden RPC tombstone and string argument conversion to explain the removal to existing callers.
Existing snapshot datadirs still resume, so keep getchainstates and startup coverage until resumption is retired.
Remove import instructions and end-to-end import scenarios, preserving ordinary kernel-tool coverage.
Reuse the export test to check the removed RPC's error code with both RPC and CLI transports.
b82890f122
net: drop mutable AssumeUTXO service flags
AssumeUTXO import and completion were the only runtime writers of local services.
Their removal lets CConnman store the startup services without an atomic.
Init sets them before network threads start and before RPC warmup ends.
Keep the constructor's initial NODE_NONE value through its existing Init call.
8906d20b2c
validation: reject legacy snapshot startup
After snapshot import removal, refuse snapshot datadirs with an active marker before destructive node or kernel initialization.
Keep normalized ordinary datadirs usable and preserve rejected data for recovery with a compatible older release.
Remove getchainstates and activation, restart and import fuzz coverage now that supported entry points are closed.
Keep cache resizing, commitment and metadata parsing tests until their corresponding APIs are removed.
Document this transition.
Delete candidate clearing with its last snapshot-test caller.
Remove unused database and validation-cache fixture options with their last snapshot test callers.
bb32b8b865
rpc: require an explicit UTXO rollback target
Keep UTXO exports available without trusted snapshot commitments.
Require a rollback height or hash instead of choosing a supported AssumeUTXO snapshot.
2f280feead
chainparams: remove AssumeUTXO commitments
Remove the trusted snapshot entries now that import and startup resumption are unavailable.
Keep the lookup interfaces until their remaining callers are removed.
b60140e112
validation: drop snapshot chain restrictions
Snapshot startup and imports are disabled. Remove the remaining snapshot-base peer filter and historical fork-warning exception.
9340836550
validation: load only the active chainstate
Snapshot imports and startup resumption are unavailable.
Initialize and verify the ordinary chainstate directly, retaining interruption and database errors.
Completion hashing and directory normalization were removed with background validation.
Delete the unused restart loader and chainstate deletion helper with their last startup callers.
Remove the deletion test while retaining ordinary kernel operation without a mempool.
efdd70cf4d
validation: delete AssumeUTXO coin loading
Delete snapshot activation, coin import and their unused helpers.
Keep AddChainstate until its remaining cache-rebalancing test is removed.
8bdda87426
coins: delete AssumeUTXO insertion bypass
Snapshot import bypassed the normal AddCoin spentness checks through EmplaceCoinInternalDANGER.
With the importer removed and fixtures using AddCoin and SpendCoin, delete the bypass and its entry constructor together with the remaining simulation, fuzz and duplicate-insertion coverage.
5bd9d4895c
validation: delete obsolete cache resizing
AssumeUTXO activation and cache sharing no longer need runtime resizing.
Remove the final startup rebalance call and the unused rebalancing and resizing APIs.
Keep startup cache-budget storage and use the existing test budget field directly.
The database is no longer replaced, so compaction needs no extra mutex.
Remove AddChainstate with its final cache-rebalancing test caller.
Remove the resizing and rebalancing tests with the APIs they exercise.
59def04f40
node: delete AssumeUTXO directory metadata
Use the ordinary chainstate directory without snapshot path selection.
Remove the base-block metadata readers and writers.
Retain the UTXO export file format and its metadata parser.
9293bfc45d
validation: remove AssumeUTXO index exceptions
Snapshot loading has already been removed, so candidates require transaction history back to genesis.
Remove snapshot-base exceptions from transaction counts and consistency checks.
Ordinary script, sigop, BIP30 and proof-of-work checks are unchanged.
e4842d275f
node: load block counts without AssumeUTXO
Reconstruct cumulative transaction counts from downloaded block history.
Remove the trusted snapshot count supplied during block-index loading.
Remove the commitment type, storage and lookup interfaces with their last caller.
Delete FindFirst with the lookup methods that used it.
Include util/vector.h directly for the external signer now that chainparams no longer supplies it.
Always return txcount in getchaintxstats now that active-chain transaction counts are complete.
07d1a4ea2c
node: use one block-file cursor and prune budget
Without AssumeUTXO, historical and tip downloads no longer need separate block files or divided prune budgets.
Write blocks and undo data through the ordinary block-file cursor.
Keep cs_main locking, undo flush failures and pruning retention unchanged.
With one cursor, flushing always targets the current block file. Remove the separate file selector and forwarding wrapper.
The undivided prune target already satisfies the configured minimum, so it needs no per-chainstate clamp.
Delete the obsolete cursor selector and printer with their last callers.
Remove the snapshot lower prune bound while preserving the existing pruning helper interfaces.
416afcb65e
wallet: use ordinary block availability checks
Retain pruning and rescan errors without the removed AssumeUTXO state.
Do not change wallet transaction accounting.
Remove hasAssumedValidChain with its last wallet callers.
f3f96d3d9d
refactor: drop AssumeUTXO notification roles
All remaining notifications come from the ordinary chainstate.
Remove the role argument from internal callbacks and their callers.
The public kernel callback ABI is unchanged.
Delete the unused role accessor, formatter and type with their consumers.
65eab3daae
refactor: use the ordinary chainstate accessors
Use the active chainstate for startup, fee estimation and IBD status.
No snapshot chainstate can be constructed or loaded.
Remove the unused snapshot target, base and chainstate-selection methods with their last callers.
e7c3e830e4
validation: retain one ordinary chainstate
Replace the chainstate vector with one owned chainstate.
Remove snapshot targets and validity state.
Snapshot activation no longer transfers the optional mempool between chainstates.
Keep its pointer mutable for fuzz fixtures that replace the pool.
Keep shutdown flushing and block activation on the ordinary path.
Remove ResetChainstates with its last caller instead of rewriting its unused body.
A successfully created kernel manager always owns that state at destruction.
Tip notifications no longer need to check which chainstate is active.
ca8b492fbd
rpc: remove snapshot metadata decoding
Deleting the AssumeUTXO importer leaves only the export side of the snapshot metadata format.
Delete the unused metadata parser, its deserialization fuzzer and the parser-only network-magic lookup.
Keep the existing export serializer and its callers unchanged.
bc1fb0cf46
node: initialize one chainstate in one pass
AssumeUTXO completion no longer tears down and reloads chainstates during startup.
Fold the remaining initialization pass into LoadChainstate and pass the cache budgets directly to the sole chainstate instead of retaining totals for redistribution.
d2b4ea9059
txdb: own the coins database directly
Removing AssumeUTXO cache resizing leaves the coins database open for the lifetime of its view.
Store the wrapper by value and retain the path and memory-only flag used by compaction.
Pass database parameters by reference now that neither view retains them.
Keep the compaction future, overlap check and destructor wait so a worker cannot outlive the database.
89c23d2b80
net: use one block download path
Historical AssumeUTXO downloads were the only caller that omitted the active chain and staller tracking.
Fold the shared traversal into the ordinary download path and evaluate its in-flight budget once now that there is no second download pass.
eebdcc950a
node: prune using a single upper height
The snapshot base was the only nonzero lower bound on pruning.
With AssumeUTXO removed, keep the tip-distance and requested-height limits in block storage and drop the always-zero lower bound and chainstate range accessor.
58e55463bb
validation: drop chainstate selection locking
Snapshot activation no longer replaces the active chainstate while the node is running.
Read the fixed owner without cs_main and remove locks that existed only to select it, including the outer fee-estimation lock around a block assembler that locks internally.
Chain contents and validation still retain their existing synchronization.
066f35dba2
validation: drop chainstate identity diagnostics
With AssumeUTXO gone, activation visits one chainstate and no longer needs to identify which state failed.
Use the singular activation name and remove the chainstate formatter, its startup log and the lock used only to format the activation error.
03b60da5b9
rpc: keep UTXO export serialization local
Removing snapshot imports leaves dumptxoutset as the only consumer of the snapshot header and export helpers.
Write the unchanged version 2 header at its sole call site and keep the helpers inside the RPC translation unit.
Drop unused default arguments from these now-local export helpers.
be621b4aea
l0rinc force-pushed on Nov 27, 2026
DrahtBot removed the label Needs rebase on Nov 27, 2026
doc: reference PR in AssumeUTXO release noteb54c0f864c
DrahtBot removed the label CI failed on Nov 27, 2026
sedited
commented at 3:47 PM on November 30, 2026:
contributor
Concept ACK
There are a multitude of reasons for its removal in my eyes: An incoherent trust model, a high maintenance cost, low user uptake, and a competing model that seems hard to provide an equivalent user experience for.
The main win that assumeutxo provides is allowing operators to receive money through their node as quickly and bandwidth-efficiently as possible without having to bootstrap the full chain. This should make it particularly interesting for merchants that would like to receive money quickly. It is meant as a replacement for people downloading chainstates from non-Bitcoin Core sources.
The user uptake of the feature has been slow, to the point where I would call it a flop with users in its current state. Assuming dropping background validation and introducing p2p distribution are the two things required to turn this feature into a widely-used success, I think they bring a significant change to the trust assumption, alongside questions around data availability and increased p2p resource consumption. While I understand the argument that "users trust the deployed binary and its production process already", I would prefer Bitcoin Core not take on more such assumptions. As a mental exercise, I ask myself whether I would be comfortable with this becoming the default sync path—and at this point, I don't think I am.
The maintenance cost of this feature so far has been high. I’d like to compare it to assumevalid, which I believe provides users a similar order of magnitude of user experience improvement. I’ve counted around 130 assumeutxo-related pull requests (not counting closed ones and the 6 open bugfixes), and around 13 about assumevalid. Now this is not a completely fair comparison: Some work was done to modularize and de-globalize a lot of the validation code to get it into its current shape and that work has had great benefits to the code beyond assumeutxo. However even with those accounted for, the effort seems completely lopsided for what it is providing to users.
Back to what we are trying to prevent here: Have merchants use chainstates from untrusted sources. For setups where a third party, e.g. btcpayserver, already handles all their configuration, having to additionally trust this vendor with their snapshot seems like a totally fine trade-off to me. It is also hard to compete with on a user experience level, even with all the planned improvements to assumeutxo we are working on here, if it is just bundled with the installation. If they do opt for assumeutxo due to its bandwidth savings and forego background validation (i.e. they already make new trust assumptions), why not use compact block filters, or, and I think speculating here is fine, since the idealized assumeutxo features are speculative too, something like zero sync.
On making ibd fast in general: Other projects have shown that validation performance can be tuned to the point where block processing speed is entirely bandwidth-limited on many consumer devices and setups. After some experimentation, I think a similar change to Bitcoin Core without sacrificing any of its existing features, or taking on new assumptions, is feasible.
I think this should be undrafted and opened for review.
DrahtBot added the label Needs rebase on Dec 1, 2026
DrahtBot
commented at 11:38 AM on December 1, 2026:
contributor
<!--cf906140f33d8803c4a75a2196329ecb-->
🐙 This pull request conflicts with the target branch and needs rebase.
willcl-ark
commented at 2:44 PM on December 1, 2026:
member
Concept ACK.
Agree with much of the above and will try to avoid re-hashing as much as possible.
Until recently I believe I was one of the very few people hosting snapshots over HTTP on utxo.download, which I don't intend to keep maintaining. That lines up with the severely low uptake we have seen for this feature. Even node-in-a-box wrappers like Start9 still ask users to supply their own snapshot URL rather than hosting one. Adding P2P snapshot download in #35054 in the hopes that it will "boost adoption" would IMO be a mistake, and it asks serving peers to keep rotating ~10 GB static blobs on disk alongside their live chainstate.
Even when a snapshot is available, many self-hosted users run Core behind an Electrum server or with -txindex, -blockfilterindex, or -coinstatsindex, all of which still need historical blocks from genesis before the stack is usable. Hardcoded snapshots also only update on major releases, so as a release ages a new node still has to download and script-validate tens of thousands of blocks after loading the snapshot.
Other projects have shown that validation performance can be tuned to the point where block processing speed is entirely bandwidth-limited...
I am also of the opinion that we can make IBD fast enough that we don't need AssumeUTXO mechanics in our software, while dropping the steady tail of AssumeUTXO edge-case bugs (6 open currently, for example) and the multi-chainstate complexity it forces onto libbitcoinkernel.
Unlike -assumevalid, where every node still reconstructs the UTXO set from genesis and checks PoW, merkle roots, and supply, an AssumeUTXO commitment is an opaque ~10 GB state blob that cannot be audited by reading code. If users are happy to trade away genesis-to-tip verification to "quickly receive a transaction", lightweight or compact-block-filter wallets already cover that at the wallet layer. The Bitcoin Core node and wallet should IMO reconstruct and validate the chain from genesis.
stickies-v
commented at 6:10 PM on December 1, 2026:
contributor
Concept ACK
Our validation code is the most critical we have. Having to reason about multiple chainstates is error-prone and a big mental tax on a lot of validation work. AssumeUTXO benefits those users who opt in to the feature just once, on first startup, but burdens everyone continuously with significant validation complexity they can't opt out of.
Moreover, while I think it is fine for users to make certain trust assumptions and trade-offs, I think it is important for this project to continue prioritizing the minimization of trust assumptions where we can.
nervana21
commented at 9:05 PM on December 2, 2026:
contributor
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-12-03 02:51 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me