aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2024-02-05 17:10:27 -0500
committerRyan Ofsky <ryan@ofsky.org>2024-03-18 11:28:40 -0500
commit9d9a7458a2570f7db56ab626b22010591089c312 (patch)
treeefaf719708835161ade2922c96aa56d70cd8a921 /doc
parentef174e9ed21c08f38e5d4b537b6decfd1f646db9 (diff)
downloadbitcoin-9d9a7458a2570f7db56ab626b22010591089c312.tar.xz
assumeutxo: Remove BLOCK_ASSUMED_VALID flag
Flag adds complexity and is not currently used for anything.
Diffstat (limited to 'doc')
-rw-r--r--doc/design/assumeutxo.md12
1 files changed, 3 insertions, 9 deletions
diff --git a/doc/design/assumeutxo.md b/doc/design/assumeutxo.md
index abb623fc69..f527ac0f2d 100644
--- a/doc/design/assumeutxo.md
+++ b/doc/design/assumeutxo.md
@@ -51,18 +51,12 @@ The utility script
## Design notes
-- A new block index `nStatus` flag is introduced, `BLOCK_ASSUMED_VALID`, to mark block
- index entries that are required to be assumed-valid by a chainstate created
- from a UTXO snapshot. This flag is used as a way to modify certain
- CheckBlockIndex() logic to account for index entries that are pending validation by a
- chainstate running asynchronously in the background.
-
- The concept of UTXO snapshots is treated as an implementation detail that lives
behind the ChainstateManager interface. The external presentation of the changes
required to facilitate the use of UTXO snapshots is the understanding that there are
- now certain regions of the chain that can be temporarily assumed to be valid (using
- the nStatus flag mentioned above). In certain cases, e.g. wallet rescanning, this is
- very similar to dealing with a pruned chain.
+ now certain regions of the chain that can be temporarily assumed to be valid.
+ In certain cases, e.g. wallet rescanning, this is very similar to dealing with
+ a pruned chain.
Logic outside ChainstateManager should try not to know about snapshots, instead
preferring to work in terms of more general states like assumed-valid.