doc: assumeutxo prune and index notes #28618
pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2023/10/assume-prune-index changing 1 files +38 −2-
Sjors commented at 12:55 pm on October 9, 2023: memberBased on recent comments on #27596.
-
DrahtBot commented at 12:55 pm on October 9, 2023: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Code Coverage
For detailed information about the code coverage, see the test coverage report.
Reviews
See the guideline for information on the review process.
Type Reviewers ACK pablomartin4btc, ryanofsky Concept ACK jamesob If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
-
DrahtBot added the label Docs on Oct 9, 2023
-
Sjors force-pushed on Oct 9, 2023
-
in doc/design/assumeutxo.md:32 in 89db87eb3d outdated
29+ 30+Indexes work but don't take advantage of this feature. They always start building 31+from the genesis block. Once the background validation reaches the snapshot block, 32+indexes will continue to build all the way to the tip. 33+ 34+For indexes that support pruning, not that no pruning will take place between
flack commented at 9:36 pm on October 9, 2023:0For indexes that support pruning, note that no pruning will take place between
in doc/design/assumeutxo.md:40 in 89db87eb3d outdated
37+use a significant amount of disk space. 38+ 39+## Generating a snapshot 40+ 41+The RPC command `dumptxoutset` can be used to generate a snapshot. This can be used 42+on one node to create a snapshot on one node that you wish to load on another node.
flack commented at 9:36 pm on October 9, 2023:0to create a snapshot on one node that you wish to load on another node.
in doc/design/assumeutxo.md:22 in 89db87eb3d outdated
19+snapshot `.dat` file as soon as `loadtxoutset` finishes. 20+ 21+The minimum `-dbcache` setting is 550 MiB, but this functionality ignores that 22+minimum and uses at least 1100 MiB. 23+ 24+As the background sync continues there will temporarily be two chainstate
pablomartin4btc commented at 4:08 am on October 10, 2023:0As the background sync continues there will be temporarily two chainstate
pablomartin4btc commented at 4:08 am on October 10, 2023: memberACKin doc/design/assumeutxo.md:17 in 89db87eb3d outdated
14+load it. 15+ 16+### Pruning 17+ 18+A pruned node can load a snapshot. To save space, it's possible to delete the 19+snapshot `.dat` file as soon as `loadtxoutset` finishes.
jamesob commented at 5:04 pm on October 10, 2023:I don’t think snapshot files necessarily have.dat
extensions.in doc/design/assumeutxo.md:24 in 89db87eb3d outdated
21+The minimum `-dbcache` setting is 550 MiB, but this functionality ignores that 22+minimum and uses at least 1100 MiB. 23+ 24+As the background sync continues there will temporarily be two chainstate 25+directories, each multiple gigabytes in size (growing to roughly the size of 26+the downloaded snapshot).
jamesob commented at 5:05 pm on October 10, 2023:Almost certainly exceeding the size of the serialized snapshot.jamesob commented at 5:07 pm on October 10, 2023: contributorACK modulo outstanding commentsdoc: assumeutxo prune and index notes 03f82087f6Sjors commented at 7:21 am on October 11, 2023: memberAddressed the above comments.Sjors force-pushed on Oct 11, 2023pablomartin4btc approvedpablomartin4btc commented at 12:26 pm on October 11, 2023: memberre ACK 03f82087f6ce1c29327f34d12945200494e6956dDrahtBot requested review from jamesob on Oct 11, 2023in doc/design/assumeutxo.md:33 in 03f82087f6
30+Indexes work but don't take advantage of this feature. They always start building 31+from the genesis block. Once the background validation reaches the snapshot block, 32+indexes will continue to build all the way to the tip. 33+ 34+For indexes that support pruning, note that no pruning will take place between 35+the snapshot and the tip, until the background sync has completed - after which
vostrnad commented at 4:14 am on October 14, 2023:0the snapshot and the tip until the background sync has completed, after which
ryanofsky approvedryanofsky commented at 4:39 pm on October 23, 2023: contributorACK 03f82087f6ce1c29327f34d12945200494e6956d. Nice changes, these seem like very helpful notesryanofsky merged this on Oct 23, 2023ryanofsky closed this on Oct 23, 2023
Sjors deleted the branch on Oct 25, 2023Frank-GER referenced this in commit 5c0dc6ab1d on Nov 28, 2023bitcoin locked this on Oct 24, 2024
github-metadata-mirror
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: 2024-12-19 03:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me