theStack
commented at 9:45 pm on August 7, 2024:
contributor
This PR is a small follow-up for #28052, adding support for the block linearization script to handle XORed blocksdir *.dat files. Note that if no xor.dat file exists, the XOR pattern is set to all-zeros, in order to still support blockdirs that have been created with versions earlier than 28.x.
Make sure to run all tests locally, according to the documentation.
The failure may 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.
DrahtBot added the label
CI failed
on Aug 7, 2024
DrahtBot removed the label
CI failed
on Aug 7, 2024
tdb3 approved
tdb3
commented at 1:26 am on August 9, 2024:
contributor
ACK77ff0ec1f185b818b30877de2bedc1750319e6c4
Nice work. Simplifies the test and enhances chain archive capability.
In addition to running unit/functionals locally (passed) and light code review, performed some sanity checks:
Created a regtest chain (~11k transactions in 411 blocks)
Confirmed that xor.dat had a non-zero key, created hashlist, then stopped bitcoind
Created a bootstrap.dat with linearize-data.py (successful)
Deleted the regtest datadir
Started bitcoind with -loadblock=/path/to/bootstrap.dat -blocksxor=0 (successful restore), then stopped bitcoind
Deleted xor.dat from the regtest/blocks/
Created another bootstrap.dat with linearize-data.py (successful)
Started bitcoind with -loadblock=/path/to/bootstrap.dat (successful restore), then stopped bitcoind
hodlinator approved
hodlinator
commented at 1:17 pm on August 12, 2024:
contributor
ACK77ff0ec1f185b818b30877de2bedc1750319e6c4
Good to see follow-up work for #28052 being carried out.
1cbc5ae87a8efe44226080ceaaaf10c5575d629d explains purpose of linearize-scripts (as it was not immediately apparent to me). Could be cherry-picked into this PR, or left for a further follow-up.
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: 2025-08-28 21:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me