Closed Sjors closed 2 weeks ago
Although I did not use -blocksxor
there is a xor.dat
file in my blocks dir.
Here's the block, undo and xor file: https://download.sprovoost.nl/download.php?id=10&token=34c0e1dcec8e6d096c2f25ebfe8f59f2
Although I did not use
-blocksxor
there is axor.dat
file in my blocks dir.
This is expected. You can print the help (and the default values) of args with the -help
arg.
I can see the point of delaying the default value by one release, but creating a blocksdir with the most recent release, only to downgrade seems an edge case.
Too late now, but I think the release notes should have made it more clear that you can't downgrade.
https://bitcoincore.org/en/releases/28.0/
Burried under "Low-level Changes":
Blockstorage
Block files are now XOR’d by default with a key stored in the blocksdir. Previous releases of Bitcoin Core or previous external software will not be able to read the blocksdir with a non-zero XOR-key.
Oh never mind, that's only "for a freshly initialized blocksdir". That seems reasonable.
Is there an existing issue for this?
Current behaviour
I'm unable to start Bitcoin Core v27.1 or v27.2 (haven't tried older) on my newly installed node. The node works with v28.0 and on recent master (2b33322169bc).
I never set
-blocksxor
.I did use assume utxo during the initial sync. I haven't tried (yet) to sync again and see if that matters.
The initial sync was done on master, I haven't tried doing the sync with the release instead.
Expected behaviour
Older node software should work, unless
-blocksxor
was used.Steps to reproduce
Start Bitcoin Core v28.0 release binary. Stop and wait. Start v27.2 release binary. It asks if I want to rebuild the blocks database. Dismiss. Start v28.0 again and it's fine.
Relevant log output
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master@2b33322169bc, v28.0, v27.2
Operating system and version
macOS 15.1
Machine specifications
Unpruned, everything stored on the built-in SSD.