Page MenuHomePhabricator

doc: add assumeutxo notes
ClosedPublic

Authored by PiRK on Oct 19 2023, 15:46.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCf58299dfffd7: doc: add assumeutxo notes
Summary

This is a backport of core#23154
with updates from core#25667 and core#25740

Depends on D14655

Test Plan

proof-reading

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Oct 19 2023, 15:46
Fabien added a subscriber: Fabien.
Fabien added inline comments.
doc/assumeutxo.md
56 ↗(On Diff #42715)

??? Why did they put an empty row ?

106 ↗(On Diff #42715)

This raises questions:

  • Is snapshot loading compatible with reindexing ? If the node is doing a reindex, can it load a snapshot ?
  • Is it compatible with pruning ? I think it should be but worth checking
This revision is now accepted and ready to land.Oct 23 2023, 13:16
doc/assumeutxo.md
106 ↗(On Diff #42715)

There is no incompatibility with pruning. The background IBD chainstate can be pruned aggressively because we know there will be no reorg.

I don't think it will be compatible with reindexing. There is a commit in core#27596 that causes the snapshot chainstate to be deleted if -reindex is used. I'm not sure what happens if loadtxoustset is called during a reindexing. I will have to try it when backporting the last PR

This revision was automatically updated to reflect the committed changes.