checking the version of a new block

2 replies 78 views
MadWizardMember
Posts: 13 · Reputation: 157
#1Jul 1, 2023, 03:26 AM
Hey everyone, I'm trying to understand something about a recently discovered block. I found this link: https://learnmeabitcoin.com/explorer/block/000000000000000000021306ffe64b02d7e826bfaf3b8a31ba518ddefae9d126. I noticed the version isn’t the basic one, 0x00000002. Do miners add extraNonce there too? Or is that just included in the merkle?
4 Reply Quote Share
Posts: 20 · Reputation: 98
#2Jul 1, 2023, 08:07 AM
yeah the version is not just base version 0x02, miners also add extraNonce to it, its calculated as version + 1 (if segwit is enabled) + 2 (if extraNonce is used) + extraNonce, merkle root is also included in the version field after some bitwise operations.
2 Reply Quote Share
MadWizardMember
Posts: 13 · Reputation: 157
#3Jul 1, 2023, 12:45 PM
So for example, I could try with base version to find right hash or I need to do bitwase operations with merkle ? I couldn't find somewhere documentation which connects merkle root and version
1 Reply Quote Share

Related topics