Skip to content

Conversation

ylg-avalabs
Copy link
Contributor

Why this should be merged

How this works

How this was tested

How is this documented


fmt.Println("flagVars.ActivateGranite()", flagVars.ActivateGranite())
upgrades := upgrade.Default
if flagVars.ActivateGranite() {
Copy link
Contributor

Choose a reason for hiding this comment

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

So what I think you actually want to do here is modify the flagvars themselves to return ActivateGranite before passing it into the newTmpnetNetwork. Checking it here won't do anything for the processes that the tmpnet spins up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The we set the upgrade in the network.DefaultFlags. Then, we passed the network in to e2e.NewTestEnvironment. I think upgrade would be set when we create test env but I looked into the code and not sure how this work.

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.

3 participants