Open shesek opened 3 months ago
Just for clarity: The XOR pattern is only applied when the blocksdir is freshly created, and there is also an option to disable it (on creation).
So an alternative to adapt the parser would be to require the option to be disabled, for now. (Possibly for esplora a config update similar to commit https://github.com/Blockstream/esplora/commit/52c1ecdb7e853a30d4486c3d9174f47b4b7ab5dd could work)
https://github.com/mempool/electrs/pull/101
I added support that basically doesn't look at any config, but rather uses the presence of the xor.dat
file to decide whether to use it.
Blockstream:
mempool:
Looks like that portion is untouched so you could just merge that in if you want.
We plan to release it as a patch v3.0.1 once Core releases v28
https://github.com/bitcoin/bitcoin/pull/28052