WIP: [Demo] validation: remove AssumeUTXO #36598

Draft
l0rinc wants to merge 35 commits from l0rinc/remove-assumeutxo into master AGit
l0rinc commented 2026-10-22 06:38:37 +00:00 (Migrated from github.com)

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.

Related work:

**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](https://github.com/bitcoin/bitcoin/pull/35054#issuecomment-4468360424). 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. **Related work:** * [AJ's recent faster-loader branch](https://github.com/ajtowns/bitcoin/tree/202610-loadtxoutset-speedy) and [Sjors's chunked-import experiments](https://github.com/Sjors/bitcoin/tree/2026/10/utxo-coin-chunks) explore reducing import overhead while retaining snapshot support. * #35054 contains the broader discussion about P2P snapshot distribution, its users and its costs.
DrahtBot commented 2026-10-22 06:38:47 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
Concept NACK Sjors
Concept ACK ismaelsadeeq, instagibbs, sedited, willcl-ark, stickies-v, nervana21, danielabrozzoni, optout21

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36990 (test: replace hard-coded RPC error codes by l0rinc)
  • #36946 (scripted-diff: [test] Add util/check.h includes for assertions by maflcko)
  • #36904 (log: Remove trailing and embedded newlines from log messages by maflcko)
  • #36876 (GUARDED_BY annotations for nTx, m_chain_tx_count by Crypt-iQ)
  • #36858 (refactor: break the blockstorage/validation circular dependency by pzafonte)
  • #36856 (kernel: add manual pruning by pzafonte)
  • #36854 (kernel: let callers create the block manager by pzafonte)
  • #36844 (iwyu: Fix warnings in more modules in src/ and treat them as errors by hebasto)
  • #36827 (test: Kill validation mutants by Zeegaths)
  • #36808 (iwyu: Fix warnings in src/test/fuzz and treat them as errors by hebasto)
  • #36790 (p2p: ignore historical blocks when counting blocks in flight by sashaphmn)
  • #36778 (AssumeUTXO: replace loadtxoutset RPC with a startup arg by l0rinc)
  • #36768 (kernel: Dispatch log callbacks with btcsignals by ryanofsky)
  • #36739 (refactor: pass BlockManager to ChainstateManager by pzafonte)
  • #36738 (refactor: move block writes and pruning into BlockManager by pzafonte)
  • #36735 (validation: delete pruned files after a failed flush by pzafonte)
  • #36702 (validation: don't treat snapshot block as linked on startup by shuv-amp)
  • #36629 (Add output script index and corresponding script history RPC by andrewtoth)
  • #36621 (node: batch block file pruning in a single pass over block index by mutatrum)
  • #36603 (Improve loadtxoutset performance by ajtowns)
  • #36543 (validation: check the most recent AssumeUTXO commitment during IBD by l0rinc)
  • #36542 (AssumeUTXO: allow retrying loadtxoutset after an interrupted load by l0rinc)
  • #36520 (interfaces: Avoid node crashes from invalid Chain IPC calls by ryanofsky)
  • #36503 (rpc: reject AssumeUTXO rollback without tip data by l0rinc)
  • #36500 (AssumeUTXO: reject duplicate coins and empty snapshot groups by l0rinc)
  • #36452 (validation: fix false corruption errors after pruning or AssumeUTXO by l0rinc)
  • #36372 (p2p: replace full outbound peers that don't support tx relay (take 2) by fjahr)
  • #36346 (validation: don't accept txs to the mempool while loading a snapshot by 0xShadowX)
  • #36326 (kernel: Use typed errors for fatal and flush error notifications by arejula27)
  • #36257 (qa: assert_equal -> assert_true/assert_false by hodlinator)
  • #36220 (rpc: report background validation progress in getchainstates by arejula27)
  • #36167 (build: Enable -Wunused by fanquake)
  • #36149 (validation: Leave some pruned blocks in m_blocks_unlinked, fix another nSequenceId issue by mzumsande)
  • #36114 (wallet: harden external signer psbt processing, revamp mock by Sjors)
  • #36042 (build: Bump g++ minimum supported version to 13 by maflcko)
  • #36000 (validation: prefetch blocks while connecting by l0rinc)
  • #35731 (Indexes: Harden the flush-error notification invariant by arejula27)
  • #35591 ([DO NOT MERGE] Erlay: bandwidth-efficient transaction relay protocol (Full implementation) by sr-gi)
  • #35557 (kernel, validation: Add btck_chainstate_manager_set_clock_time by ryanofsky)
  • #35522 (refactor: Extract per-message helpers from SendMessages() (move-only) by pablomartin4btc)
  • #35229 (refactor: Use CBlockIndex parameters as reference by optout21)
  • #35003 (validation: improve block data I/O error handling in P2P paths by furszy)
  • #34864 (coins: tighten cache entry state invariants by l0rinc)
  • #34778 (logging: rewrite macros to enforce restrictions at compile-time, improve efficiency and usability by ryanofsky)
  • #34775 (kernel: allow only one global logging connection by stickies-v)
  • #34534 (rpc: Manual prune lock management (Take 2) by fjahr)
  • #34360 (bench: add WalletBalanceManySpent for high-history wallet scenario by w0xlt)
  • #33324 (blocks: add resumable reobfuscation for existing block files by l0rinc)
  • #32468 (rpc: generateblock to allow multiple outputs with custom payouts by polespinasa)
  • #29256 (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.

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 marker.read_bytes() == bytes(32) → assert_equal(marker.read_bytes(), bytes(32)).
  • 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()}).

2026-11-27 11:19:58

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36598 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36598.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36598#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | Concept NACK | [Sjors](https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-6379989317) | | Concept ACK | [ismaelsadeeq](https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-6338865042), [instagibbs](https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-6857599086), [sedited](https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-7283584565), [willcl-ark](https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-7314760841), [stickies-v](https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-7320516422), [nervana21](https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-7358769581), [danielabrozzoni](https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-7375971738), [optout21](https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-7377276832) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36990](https://github.com/bitcoin/bitcoin/pull/36990) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36990.svg"></sub> (test: replace hard-coded RPC error codes by l0rinc) * [#36946](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/36858) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36858.svg"></sub> (refactor: break the blockstorage/validation circular dependency by pzafonte) * [#36856](https://github.com/bitcoin/bitcoin/pull/36856) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36856.svg"></sub> (kernel: add manual pruning by pzafonte) * [#36854](https://github.com/bitcoin/bitcoin/pull/36854) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36854.svg"></sub> (kernel: let callers create the block manager by pzafonte) * [#36844](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/36827) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36827.svg"></sub> (test: Kill validation mutants by Zeegaths) * [#36808](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/36768) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36768.svg"></sub> (kernel: Dispatch log callbacks with btcsignals by ryanofsky) * [#36739](https://github.com/bitcoin/bitcoin/pull/36739) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36739.svg"></sub> (refactor: pass BlockManager to ChainstateManager by pzafonte) * [#36738](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/36603) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36603.svg"></sub> (Improve loadtxoutset performance by ajtowns) * [#36543](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/36503) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36503.svg"></sub> (rpc: reject AssumeUTXO rollback without tip data by l0rinc) * [#36500](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/36257) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36257.svg"></sub> (qa: assert_equal -> assert_true/assert_false by hodlinator) * [#36220](https://github.com/bitcoin/bitcoin/pull/36220) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36220.svg"></sub> (rpc: report background validation progress in getchainstates by arejula27) * [#36167](https://github.com/bitcoin/bitcoin/pull/36167) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36167.svg"></sub> (build: Enable `-Wunused` by fanquake) * [#36149](https://github.com/bitcoin/bitcoin/pull/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) * [#36114](https://github.com/bitcoin/bitcoin/pull/36114) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36114.svg"></sub> (wallet: harden external signer psbt processing, revamp mock by Sjors) * [#36042](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/36000) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36000.svg"></sub> (validation: prefetch blocks while connecting by l0rinc) * [#35731](https://github.com/bitcoin/bitcoin/pull/35731) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35731.svg"></sub> (Indexes: Harden the flush-error notification invariant by arejula27) * [#35591](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/35229) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35229.svg"></sub> (refactor: Use CBlockIndex parameters as reference by optout21) * [#35003](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/34864) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/34864.svg"></sub> (coins: tighten cache entry state invariants by l0rinc) * [#34778](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/34775) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/34775.svg"></sub> (kernel: allow only one global logging connection by stickies-v) * [#34534](https://github.com/bitcoin/bitcoin/pull/34534) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/34534.svg"></sub> (rpc: Manual prune lock management (Take 2) by fjahr) * [#34360](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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](https://github.com/bitcoin/bitcoin/pull/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 marker.read_bytes() == bytes(32)` → `assert_equal(marker.read_bytes(), bytes(32))`. - `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>
First-time contributor

This is a draft pull request, so Ralph reviewed only its concept. Code review runs on the first push after it is marked ready for review.

Earlier concerns neither republished nor resolved: 1 major finding · 2 minor findings · 7 suggestions. See the Run archive linked from the Review report for their assessments.

Design and approach

Reducing validation coordination and maintenance cost is worth pursuing through this demonstration and separately motivated proposals. It shows concrete lifecycle machinery that can disappear, but does not establish measured reliability gains or a sufficient case for removing snapshot bootstrap entirely.

Separate background-validation removal from snapshot-loading removal. The original design offers early usability followed by automatic local historical verification; explicit snapshot trust with manual -reindex changes that workflow. Wider commitment checking does not preserve per-user local verification, and dropping background sync leaves historical functionality and recovery tradeoffs to resolve. The decisive questions are whether automatic local verification must remain supported and how much bootstrap advantage snapshots retain over current ordinary IBD. The supplied evidence does not quantitatively settle that advantage or the adoption-versus-maintenance tradeoff.

Review coverage was incomplete.


Reviewed: b54c0f864ccc · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:e1a29e5e677c47d383756f0fcf8f3760725c91d1104dd3ccb2f333b6217eba26:47880f5569fd2047d249266f337c4f2a509adf7d96c3ccb1c7644c2c2a650bff --> <!-- ralph-base:5c4e8374074f1c247e88c4fc12fc5b8858e6ff6f --> <!-- ralph-head:b54c0f864ccca0ca1fb17bc770d602fb36dd559b --> <!-- ralph-case:3bf690a6fa11428b1d71b994a4696949039742d189ad08fcabd3c0425ae08a3f --> This is a draft pull request, so Ralph reviewed only its concept. Code review runs on the first push after it is marked ready for review. Earlier concerns neither republished nor resolved: 1 major finding · 2 minor findings · 7 suggestions. See the Run archive linked from the Review report for their assessments. ##### Design and approach Reducing validation coordination and maintenance cost is worth pursuing through this [demonstration](https://git.fish.foo/bitcoin/bitcoin/pulls/36598) and separately motivated proposals. It shows concrete lifecycle machinery that can disappear, but does not establish measured reliability gains or a sufficient case for removing snapshot bootstrap entirely. Separate background-validation removal from snapshot-loading removal. The [original design](https://github.com/bitcoin/bitcoin/pull/15605) offers early usability followed by automatic local historical verification; explicit snapshot trust with manual `-reindex` changes that workflow. Wider commitment checking does not preserve per-user local verification, and [dropping background sync](https://git.fish.foo/bitcoin/bitcoin/issues/36557) leaves historical functionality and recovery tradeoffs to resolve. The decisive questions are whether automatic local verification must remain supported and how much bootstrap advantage snapshots retain over current ordinary IBD. The supplied evidence does not quantitatively settle that advantage or the adoption-versus-maintenance tradeoff. Review coverage was incomplete. <!-- Review tier: routine --> --- Reviewed: [`b54c0f864ccc`](<https://git.fish.foo/bitcoin/bitcoin/commit/b54c0f864ccca0ca1fb17bc770d602fb36dd559b>) · [Review report](<https://review.fish.foo/report/36598-b54c0f864ccca0ca1fb17bc770d602fb36dd559b-3412-18.html>) · [Previous reports](<https://review.fish.foo/traces/36598/>) [permalink](<https://review.fish.foo/report/36598-b54c0f864ccca0ca1fb17bc770d602fb36dd559b-3412-18.html>)
ismaelsadeeq commented 2026-10-22 10:46:14 +00:00 (Migrated from github.com)

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.

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.
ariard commented 2026-10-24 02:30:00 +00:00 (Migrated from github.com)

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.

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](https://gnusha.org/pi/bitcoindev/CALZpt+[email protected]/) 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 2026-10-24 04:43:14 +00:00 (Migrated from github.com)

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).

> 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 commented 2026-10-26 20:52:58 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
DrahtBot commented 2026-11-05 17:09:08 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
DrahtBot commented 2026-11-11 10:39:24 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/42987432513/job/130411864826
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.

Hints

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.

<!--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>
DrahtBot commented 2026-11-12 11:50:22 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
instagibbs commented 2026-11-13 15:36:33 +00:00 (Migrated from github.com)

concept ACK

Similar to https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-6338865042 , 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.

concept ACK Similar to https://github.com/bitcoin/bitcoin/pull/36598#issuecomment-6338865042 , 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 commented 2026-11-13 18:41:46 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/43453044407/job/131979961282
LLM reason (✨ experimental): CI failed because IWYU changed include directives in src/rpc/blockchain.cpp, causing the include-check to detect uncommitted formatting changes.

Hints

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.

<!--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>
DrahtBot commented 2026-11-16 17:10:29 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
DrahtBot commented 2026-11-20 22:40:38 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
DrahtBot commented 2026-11-25 00:07:14 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task lint: https://github.com/bitcoin/bitcoin/actions/runs/45496289431/job/138807561269
LLM reason (✨ experimental): CI failed the release-note lint because doc/release-notes-remove-assumeutxo.md lacks a required PR reference.

Hints

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.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `lint`: https://github.com/bitcoin/bitcoin/actions/runs/45496289431/job/138807561269</sub> <sub>LLM reason (✨ experimental): CI failed the release-note lint because `doc/release-notes-remove-assumeutxo.md` lacks a required PR reference.</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>
DrahtBot commented 2026-11-25 00:56:07 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
sedited commented 2026-11-30 15:47:13 +00:00 (Migrated from github.com)

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.

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 commented 2026-12-01 11:38:05 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
willcl-ark commented 2026-12-01 14:44:50 +00:00 (Migrated from github.com)

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.

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](https://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 2026-12-01 18:10:19 +00:00 (Migrated from github.com)

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.

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 2026-12-02 21:05:13 +00:00 (Migrated from github.com)

Concept ACK

Concept ACK
danielabrozzoni commented 2026-12-03 10:55:44 +00:00 (Migrated from github.com)

Concept ACK.

I was initially very excited when #35054 was opened. I really liked the idea of having a bitcoin node that could be quickly usable with little to no user interaction. However, various conversations with people, both here and in person, changed my mind.

The strongest argument for removing assumeutxo is that it complicates the validation code quite a bit, for little to no user adoption.

I can't comment much on the first point, other than that, anecdotally, I have spent some time reviewing PRs in the assumeutxo realm and doing some automated AI scans, and the code still seems a bit brittle around the edges to me. This comment from l0rinc https://github.com/bitcoin/bitcoin/pull/35054#issuecomment-4488453829 points at the same problem: there have been many edge cases, and there still are, that required a lot of engineering time from us.

Regarding user adoption, none of us really has precise data, but we all seem to have a sense that adoption is little to none. My anecdotal experience is that the users I spoke to weren't even aware of assumeutxo. I think part of the problem is that users who want to connect their wallet to Core usually do it through an Electrum server, which requires either -txindex or the whole blockchain on disk. Neither is available until background validation finishes, so they don't get any upside from using assumeutxo.

I sometimes use assumeutxo, mostly when I need a node for testing and don't want to wait for it to exit IBD. As a user, I'd be a bit sad to see it go, but I think it's important that, as a project with limited resources, we use the engineering time we have efficiently, and assumeutxo doesn't seem to be the place for it.

Concept ACK. I was initially very excited when #35054 was opened. I really liked the idea of having a bitcoin node that could be quickly usable with little to no user interaction. However, various conversations with people, both here and in person, changed my mind. The strongest argument for removing assumeutxo is that it complicates the validation code quite a bit, for little to no user adoption. I can't comment much on the first point, other than that, anecdotally, I have spent some time reviewing PRs in the assumeutxo realm and doing some automated AI scans, and the code still seems a bit brittle around the edges to me. This comment from l0rinc https://github.com/bitcoin/bitcoin/pull/35054#issuecomment-4488453829 points at the same problem: there have been many edge cases, and there still are, that required a lot of engineering time from us. Regarding user adoption, none of us really has precise data, but we all seem to have a sense that adoption is little to none. My anecdotal experience is that the users I spoke to weren't even aware of assumeutxo. I think part of the problem is that users who want to connect their wallet to Core usually do it through an Electrum server, which requires either -txindex or the whole blockchain on disk. Neither is available until background validation finishes, so they don't get any upside from using assumeutxo. I sometimes use assumeutxo, mostly when I need a node for testing and don't want to wait for it to exit IBD. As a user, I'd be a bit sad to see it go, but I think it's important that, as a project with limited resources, we use the engineering time we have efficiently, and assumeutxo doesn't seem to be the place for it.
optout21 commented 2026-12-03 11:51:46 +00:00 (Migrated from github.com)

I agree with most of the points of the above ~5 comments, and I don't want to repeat, and I have expressed my points in the background sync removal issue #36557.

The AssumeUTXO feature imposes a risk due to extra complexity, a risk unproportional to the usefulness and usage of the feature. (The extra complexity is largely a result of the need to support two chain states.) In the age of cheap LLM vulnerability scanners the feature-vs-simplicity balance is shifting towards simplicity.

What I would like to see:

  1. Remove the background sync part of Assume UTXO ASAP, reducing a large portion of extra complexity and tech debt (#36557).
  2. Deprecate the full AssumeUTXO feature. This gives a clear signal to its users, and gives time to switch to alternatives. It also gives time to the development team to improve the alternatives, such as faster pruned IBD (#36476), and others. This is important, so that some users don't implement their own sub-optimal solution (e.g. own unverified UTXO set distribution).
  3. Remove the AssumeUTXO feature.

Concept ACK

I agree with most of the points of the above ~5 comments, and I don't want to repeat, and I have expressed my points in the [background sync removal issue #36557](https://github.com/bitcoin/bitcoin/issues/36557#issuecomment-6291344588). The AssumeUTXO feature imposes a risk due to extra complexity, a risk unproportional to the usefulness and usage of the feature. (The extra complexity is largely a result of the need to support two chain states.) In the age of cheap LLM vulnerability scanners the feature-vs-simplicity balance is shifting towards simplicity. What I would like to see: 1. Remove the background sync part of Assume UTXO ASAP, reducing a large portion of extra complexity and tech debt (#36557). 2. Deprecate the full AssumeUTXO feature. This gives a clear signal to its users, and gives time to switch to alternatives. It also gives time to the development team to improve the alternatives, such as faster pruned IBD (#36476), and others. This is important, so that some users don't implement their own sub-optimal solution (e.g. own unverified UTXO set distribution). 3. Remove the AssumeUTXO feature. Concept ACK
Sjors commented 2026-12-03 12:17:25 +00:00 (Migrated from github.com)

It's useful to know if people have a preference for removing the whole thing, so I don't want to discourage that. But...

I still think we should only drop background sync. What's new: I think we can actually wait before adding p2p support.

@instagibbs wrote:

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.

Those are the two extreme options, but my earlier point was that we should start with stripping the most problematic and least useful parts of the functionality, and then reconsider if we want to remove it completely.

My current impression is that removing background sync #36557 does a lot there. It's where most of the complexity sits, and removing it improves the user experience.

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,

Start9 has support: https://github.com/Start9Labs/bitcoin-core-startos/blob/31.x/instructions.md#other-actions

RaspiBlitz is considering it, but not much movement: https://github.com/raspiblitz/raspiblitz/issues/1178

Dropping background sync would also make it easier to support, since their software also wouldn't need to deal with two chain-states.

I don't think we need p2p support for node-in-box software. They could easily add torrent support.

@sedited wrote:

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.

BTCPayServer is open source too, so people can still verify that it relies on the assume-utxo hash rather than an arbitrary blob with a full data directory.

One thing we haven't seen yet is a proper node-on-a-phone. It wasn't practical before:

  1. the Kernel project, see e.g. https://github.com/Sjors/kernel-i-node for a prototype; or
  2. The QML GUI (which isn't ready yet)

Phones are different than raspberry pies, because you can't expect users to just leave the device in a corner for a few days, plugged in with the app in the foreground (iOs) while it completes IBD.

Without a way to skip historical block validation, running Bitcoin Core (or another kernel-based app) on a phone is likely never going to happen.

Most mobile apps share an xpub or use Electrum. Skipping historical sync in exchange for better privacy and eclipse attack resistance, may actually be good trade-off. Then they can use BIP-158 filters between sessions.

Phone apps can probably also use a torrent, so there too I think it's fine to hold off on adding p2p support until we see more usage.

All that said, AssumeUTXO for IBD + bip158 for steady state, might still not be good enough mobile UX. It may turn out that Utreexo / Floresta is the way forward for mobile. That also requires being able to skip historical block download, but only kernel would need to support it (and maybe not even that, if they maintain a fork of the kernel). The real pessimistic scenario is that Electrum over Tor is as good as it will ever get on mobile.

It's useful to know if people have a preference for removing the whole thing, so I don't want to discourage that. But... I still think we should only drop background sync. What's new: I think we can actually wait before adding p2p support. @instagibbs wrote: > 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. Those are the two extreme options, but my earlier point was that we should start with stripping the most problematic and least useful parts of the functionality, and then reconsider if we want to remove it completely. My current impression is that removing background sync #36557 does a lot there. It's where most of the complexity sits, and removing it improves the user experience. > 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, Start9 has support: https://github.com/Start9Labs/bitcoin-core-startos/blob/31.x/instructions.md#other-actions RaspiBlitz is considering it, but not much movement: https://github.com/raspiblitz/raspiblitz/issues/1178 Dropping background sync would also make it easier to support, since their software also wouldn't need to deal with two chain-states. I don't think we need p2p support for node-in-box software. They could easily add torrent support. @sedited wrote: > 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. BTCPayServer is open source too, so people can still verify that it relies on the assume-utxo hash rather than an arbitrary blob with a full data directory. One thing we haven't seen yet is a proper node-on-a-phone. It wasn't practical before: 1. the Kernel project, see e.g. https://github.com/Sjors/kernel-i-node for a prototype; or 2. The QML GUI (which isn't ready yet) Phones are different than raspberry pies, because you can't expect users to just leave the device in a corner for a few days, plugged in with the app in the foreground (iOs) while it completes IBD. Without a way to skip historical block validation, running Bitcoin Core (or another kernel-based app) on a phone is likely never going to happen. Most mobile apps share an xpub or use Electrum. Skipping historical sync in exchange for better privacy and eclipse attack resistance, may actually be good trade-off. Then they can use BIP-158 filters between sessions. Phone apps can probably also use a torrent, so there too I think it's fine to hold off on adding p2p support until we see more usage. All that said, AssumeUTXO for IBD + bip158 for steady state, might still not be good enough mobile UX. It may turn out that Utreexo / Floresta is the way forward for mobile. That also requires being able to skip historical block download, but only kernel would need to support it (and maybe not even that, if they maintain a fork of the kernel). The real pessimistic scenario is that Electrum over Tor is as good as it will ever get on mobile.
ajtowns commented 2026-12-04 07:44:30 +00:00 (Migrated from github.com)

I don't believe this is a good approach at all. There is obviously a very strong incentive to be able to spin up a new node quickly -- if it takes a day or a week between configuring a server and having it be able to follow the current tip, that's a major impediment to adoption. Assumeutxo provides a way of doing that figure in minutes: it reduces the amount of data to download by about 95%, and reduces the computational load similarly, even on relatively weak hardware.

Historical validation of the chain state is fundamentally a different job than "stand up a new node", and one that generally can take hours or days without causing a problem, provided it doesn't prevent you from standing up a new node. Linking the two tasks therefore encourages continual heavy optimisation of that code, often ones that are only beneficial during IBD. That seems to me a very risky tradeoff, in that any mistakes in the optimisations will impact live validation code. For example #37038 is a +800 LOC change that improves IBD from 2h25m to 2h22m on SSD, or to 8h14m on HDD or 8h/21h/54h on rpi in various configurations which seems to me to be measurable but not very meaningful, while introducing qualitative new risks via probabilistic primitives and more complex data structures.

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.

This feature was abandoned at the half-way point and has only recently been picked up for further development, so I've never found it surprising that it never got much use. Having done both the optimised load, and also the "skip bg download" part, I find this approach is much more appealing and convenient for spinning up new nodes than the current highly optimised IBD approach.

I'm not going to use the four-letter N-word here, but I think this is demonstrating fundamentally flawed development priorities.

I don't believe this is a good approach at all. There is obviously a very strong incentive to be able to spin up a new node quickly -- if it takes a day or a week between configuring a server and having it be able to follow the current tip, that's a major impediment to adoption. Assumeutxo provides a way of doing that figure in minutes: it reduces the amount of data to download by about 95%, and reduces the computational load similarly, even on relatively weak hardware. Historical validation of the chain state is fundamentally a different job than "stand up a new node", and one that generally **can** take hours or days without causing a problem, provided it doesn't prevent you from standing up a new node. Linking the two tasks therefore encourages continual heavy optimisation of that code, often ones that are only beneficial during IBD. That seems to me a very risky tradeoff, in that any mistakes in the optimisations will impact live validation code. For example #37038 is a +800 LOC change that improves IBD from 2h25m to 2h22m on SSD, or to 8h14m on HDD or 8h/21h/54h on rpi in various configurations which seems to me to be measurable but not very meaningful, while introducing qualitative new risks via probabilistic primitives and more complex data structures. > 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. This feature was abandoned at the half-way point and has only recently been picked up for further development, so I've never found it surprising that it never got much use. Having done both the optimised load, and also the "skip bg download" part, I find this approach is much more appealing and convenient for spinning up new nodes than the current highly optimised IBD approach. I'm not going to use the four-letter N-word here, but I think this is demonstrating fundamentally flawed development priorities.
optout21 commented 2026-12-04 08:02:46 +00:00 (Migrated from github.com)

it reduces the amount of data to download by about 95%

Nice to have a real argument here!
I'd zoom in on one aspect here. With all due respect, I don't think the quoted bit it true, due to background validation.
Could you clarify what's your stance on the background validation part of AssumeUTXO?
(less data to download until the node is up and later more / bg validation is an important part for trust level / nice to have but could be optional / not an important part / etc.).

> it reduces the amount of data to download by about 95% Nice to have a real argument here! I'd zoom in on one aspect here. With all due respect, I don't think the quoted bit it true, due to background validation. Could you clarify what's your stance on the background validation part of AssumeUTXO? (less data to download until the node is up and later more / bg validation is an important part for trust level / nice to have but could be optional / not an important part / etc.).
ajtowns commented 2026-12-04 08:47:24 +00:00 (Migrated from github.com)

it reduces the amount of data to download by about 95%

Nice to have a real argument here! I'd zoom in on one aspect here. With all due respect, I don't think the quoted bit it true, due to background validation. Could you clarify what's your stance on the background validation part of AssumeUTXO?

With assumeutxo, the cost to stand up a new mainnet node to follow the tip and generate blocktemplates or act as a wallet is ~20 minutes of validation time, plus about 40GB of download. This is what I did in order to track the mainnet block for the testnet5 genesis mine -- much easier to justify spinning up a real mainnet node even for something pretty trivial when it only takes 20 minutes, than when it takes many hours or requires upgrading to a more expensive VPS.

Without assumeutxo, the cost to stand up a new mainnet node to do those things is however long IBD takes.

With or without assumeutxo, the cost to do IBD / full re-validation of the chain is about 700GB of download, plus some hours of CPU time. (Generating your own indexes is the same download, but could conceivably be less CPU, if undo data wasn't needed or was downloadable; for small indexes, an assumeindex mode would perhaps also be possible of course).

I would be tempted not to do background validation at all (ie, if you want to do IBD after spinning up via assumeutxo, just run a second node on the same system), but #37094 could be a better approach while remaining simple. I don't think the multi chainstate approach is a good one; but even very limited objections to that approach got rejected back in the day.

(less data to download until the node is up and later more / bg validation is an important part for trust level / nice to have but could be optional / not an important part / etc.).

I don't think the trust level is meaningfully different: if you're trusting that the developers didn't add code to insert fake utxos paying funds to themselves during IBD, you might as well trust them to include the correct utxo set hashes in the code. Calculating the utxo set hash via independent software protects against both sorts of bad behaviour. If you're reviewing the code, then the hashes are one of the more straightforward things to review (and could be an automatic part of IBD with #36543).

> > it reduces the amount of data to download by about 95% > > Nice to have a real argument here! I'd zoom in on one aspect here. With all due respect, I don't think the quoted bit it true, due to background validation. Could you clarify what's your stance on the background validation part of AssumeUTXO? With assumeutxo, the cost to stand up a new mainnet node to follow the tip and generate blocktemplates or act as a wallet is ~20 minutes of validation time, plus about 40GB of download. This is what I did in order to track the mainnet block for the testnet5 genesis mine -- much easier to justify spinning up a real mainnet node even for something pretty trivial when it only takes 20 minutes, than when it takes many hours or requires upgrading to a more expensive VPS. Without assumeutxo, the cost to stand up a new mainnet node to do those things is however long IBD takes. With or without assumeutxo, the cost to do IBD / full re-validation of the chain is about 700GB of download, plus some hours of CPU time. (Generating your own indexes is the same download, but could conceivably be less CPU, if undo data wasn't needed or was downloadable; for small indexes, an assumeindex mode would perhaps also be possible of course). I would be tempted not to do background validation at all (ie, if you want to do IBD after spinning up via assumeutxo, just run a second node on the same system), but #37094 could be a better approach while remaining simple. I don't think the multi chainstate approach is a good one; but even [very limited objections](https://github.com/bitcoin/bitcoin/pull/24008#discussion_r888474234) to that approach got rejected back in the day. > (less data to download until the node is up and later more / bg validation is an important part for trust level / nice to have but could be optional / not an important part / etc.). I don't think the trust level is meaningfully different: if you're trusting that the developers didn't add code to insert fake utxos paying funds to themselves during IBD, you might as well trust them to include the correct utxo set hashes in the code. Calculating the utxo set hash via independent software protects against both sorts of bad behaviour. If you're reviewing the code, then the hashes are one of the more straightforward things to review (and could be an automatic part of IBD with #36543).
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36598
No description provided.