Skip to content
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

Transaction & block version is int32le #662

Merged
merged 1 commit into from
Oct 12, 2016

Conversation

afk11
Copy link
Contributor

@afk11 afk11 commented Oct 12, 2016

https://en.bitcoin.it/wiki/Protocol_documentation#Block_Headers
https://en.bitcoin.it/wiki/Protocol_documentation#tx

The transaction and block version fields are both int32's (little endian encoded), so technically the range is -2^31 to 2^31 (not zero to 2^32)

@afk11 afk11 force-pushed the transaction-version-is-int32le branch from cf39dda to 3961684 Compare October 12, 2016 14:09
@dcousens dcousens merged commit 7b11677 into bitcoinjs:master Oct 12, 2016
@dcousens
Copy link
Contributor

dcousens commented Oct 12, 2016

@afk11 good spot!
We'll need some more test cases for this just to make sure that doesn't regress in the future 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants