-
Notifications
You must be signed in to change notification settings - Fork 21
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 #92
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.
LGTM, just one note about a further update we'll need to make in teleporter
. We can wait to make that at the same time we update the awm-relayer
version though.
@@ -38,7 +38,7 @@ type MessageProtocolConfig struct { | |||
} | |||
type SourceSubnet struct { | |||
SubnetID string `mapstructure:"subnet-id" json:"subnet-id"` | |||
ChainID string `mapstructure:"chain-id" json:"chain-id"` | |||
BlockchainID string `mapstructure:"blockchain-id" json:"blockchain-id"` |
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.
We'll have to update https://github.com/ava-labs/teleporter/blob/main/docker/relayerConfigTemplate.json to match the new config options. It looks like that slipped through the cracks of the other PR.
b87138e
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
Signed-off-by: Geoff Stuart <[email protected]>
1dfecd9
…/awm-relayer into gstuart/chainID-to-blockchainID
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
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.
Related Teleporter PR ava-labs/icm-contracts#156
closes #70
How this works
How this was tested
How is this documented