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

Rename chainID to blockchainID #156

Merged
merged 8 commits into from
Nov 28, 2023
Merged

Conversation

geoff-vball
Copy link
Contributor

@geoff-vball geoff-vball commented Nov 22, 2023

Why this should be merged

chainID usually refers to an ethereum chainID, which is set in the chain genesis. This is distinct from blockchainID, which uniquely identifies a subnet on Avalanche, and is the hash of the P-Chain tx that creates the blockchain. We have used chainID in many places that should be blockchainID, so this PR looks to disambiguate them.

Note: chainID always appears as a *big.Int or uint256, whereas blockchainID is a [32]byte.

Closes #95

How this works

How this was tested

How is this documented

Copy link
Contributor

@cam-schultz cam-schultz left a 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.

geoff-vball and others added 2 commits November 24, 2023 11:29
Copy link
Contributor

@bernard-avalabs bernard-avalabs left a 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.

Copy link

@minghinmatthewlam minghinmatthewlam left a 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

@michaelkaplan13 michaelkaplan13 merged commit e21ccab into main Nov 28, 2023
13 checks passed
@michaelkaplan13 michaelkaplan13 deleted the gstuart/chainID-to-blockchainID branch November 28, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Rename "ChainID" to "BlockchainID"
5 participants