-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix transaction/block versions for devnet genesis blocks #2056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix transaction/block versions for devnet genesis blocks #2056
Conversation
56ff71f mistakenly increased the coinbase transaction version instead of the block version. This fixes it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
src/chainparams.cpp
Outdated
|
|
||
| CMutableTransaction txNew; | ||
| txNew.nVersion = 4; | ||
| txNew.nVersion = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: v1 should be enough here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v2 started to use the height in coinbase and I wanted to provide the height in the genesis block as well. don't remember however why I wanted this in the first place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are confusing tx/block version here again then - block v2 (bip34) started to use height, tx v2 is about bip68, not bip34.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you're right. This confusion seems to haunt me...adding a commit on top
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-ACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
* Fix transaction/block versions for devnet genesis blocks 56ff71f mistakenly increased the coinbase transaction version instead of the block version. This fixes it. * Use v1 for coinbase transaction
56ff71f mistakenly increased the coinbase transaction version instead
of the block version. This fixes it.