-
Notifications
You must be signed in to change notification settings - Fork 28
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
Rename chainID to blockchainID #156
Conversation
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.
Thanks for taking care or this. I left a few comments to clean up some of the naming while we're here.
Co-authored-by: cam-schultz <[email protected]> Signed-off-by: Geoff Stuart <[email protected]>
Co-authored-by: cam-schultz <[email protected]> Signed-off-by: Geoff Stuart <[email protected]>
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.
Other than the few minor comments that Cam made, the PR LGTM.
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.
LGTM, thanks for cleaning up
Why this should be merged
chainID
usually refers to an ethereum chainID, which is set in the chain genesis. This is distinct fromblockchainID
, which uniquely identifies a subnet on Avalanche, and is the hash of the P-Chain tx that creates the blockchain. We have usedchainID
in many places that should beblockchainID
, so this PR looks to disambiguate them.Note:
chainID
always appears as a*big.Int
or uint256, whereasblockchainID
is a[32]byte
.Closes #95
How this works
How this was tested
How is this documented