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

Set GENESIS_FORK_VERSION to a bytes4 constant #792

Merged
merged 2 commits into from
Mar 17, 2019
Merged

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented Mar 17, 2019

Issue

It's suboptimal that we have to convert GENESIS_FORK_VERSION with int_to_bytes4(GENESIS_FORK_VERSION) everytime we use it.

Solution

We define that a "fork version" is a bytes4 object universally.

@JustinDrake
Copy link
Collaborator

Agreed this is an improvement :)

FYI, @djrtwo disagrees with us—see here. I still think this is the way forward :)

@JustinDrake JustinDrake merged commit 6b82f5e into dev Mar 17, 2019
@hwwhww
Copy link
Contributor Author

hwwhww commented Mar 17, 2019

@JustinDrake @djrtwo
Whoops! Sorry for that I missed that #764 was there!
If human-readability is a problem, we could have both ForkVersion: bytes4 and ForkNumber: uint32.

pipermerriam pushed a commit to pipermerriam/eth2.0-specs that referenced this pull request Mar 28, 2019
* Set `GENESIS_FORK_VERSION` to a `bytes4` constant

* Update 0_beacon-chain.md
@hwwhww hwwhww deleted the hwwhww-patch-1 branch March 29, 2019 05:57
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