blk00000.dat file issues

4 replies 447 views
Gig4M0onMember
Posts: 3 · Reputation: 162
#1May 14, 2024, 10:28 AM
So, I just set up Bitcoin Core, but I got some confusion with the blk00000.dat files... I downloaded a bunch last week and they look fine, like starting with f9beb4d9... but the one I got today is weird, doesn't start the same way. Anyone know what's up with that?
2 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#2May 14, 2024, 11:51 AM
Sounds like it could be a couple of things. Could be that Bitcoin Core is obfuscating the data with an XOR operation. Or it might just be that blocks aren’t saved in the order you'd expect. Just a thought.
1 Reply Quote Share
Gig4M0onMember
Posts: 3 · Reputation: 162
#3May 14, 2024, 12:58 PM
But why am I seeing this only now? All those blk*.dat files I grabbed last week are totally readable and have the magic bytes at the start. It’s not like the blocks were in perfect order, but still worth noting. What's the deal?
3 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#4May 14, 2024, 05:20 PM
Could be a version issue. If you’re on a version lower than 28.0, that could cause it. Or if you manually set blocksxor=0 in your config it might help. Check your version and settings.
4 Reply Quote Share
Gig4M0onMember
Posts: 3 · Reputation: 162
#5May 14, 2024, 07:02 PM
Aha! Just figured it out! I was using version 28.1 today which is giving me those XOR'ed files. Last week I had 27.2, so that makes sense. Just reinstalled 27.2 and now my.dat files are good to go. Thanks for the help!
1 Reply Quote Share

Related topics