Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Refactor subnet ID and infer ChainID from SubnetID #187

Merged
merged 9 commits into from
Jun 7, 2023

Conversation

adlrocha
Copy link
Contributor

@adlrocha adlrocha commented Jun 2, 2023

Depends on: consensus-shipyard/go-ipc-types#21 consensus-shipyard/ipc-actors#109
Fixes: #178

This PR:

  • Integrates the latest actors bundle including the SubnetID refactor, and upgrades the go-ipc-types with the corresponding changes.
  • Infers the ChainID of the network from its SubnetID instead of inheriting it from the build parameter, ensuring that every child subnet has a different chainID dependent of their unique ID.

This change required changing things all over the place (thus the large amount of files changed). Even if tests pass, I highly recommend doing an end-to-end test from the IPC agent and testing the deployment of the infra scripts before merging this PR (and the dependent ones).

Copy link
Contributor

@dnkolegov dnkolegov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@adlrocha adlrocha merged commit 4e4c925 into dev Jun 7, 2023
@adlrocha adlrocha deleted the adlrocha/subnetid-refactor branch June 7, 2023 18:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assign different ChainIDs to the different subnets
2 participants