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

test: add sovereign changeover tests #1018

Closed

Conversation

MSalopek
Copy link
Contributor

@MSalopek MSalopek commented Jun 14, 2023

Description

Closes: #780

The scenario:
Run sovereign chain, create an upgrade prop and pass it. The chain halts when upgrade height is reached.
The sovereign chain does not create an IBC connection to provider.

Then, perform the upgrade procedure which will add ccv module to the sovereign chain.
After that, try to create IBC connections between sovereign (now a consumer using the provider valset it got from CCV genesis) and the provider.

At the moment this fails on adding an IBC connection (validator hash mismatch):

{chain=provi tracking_id=ConnectionOpenTry
}:send_tx_with_account_sequence_retry{chain=provi account.sequence=2
}:estimate_gas: failed to simulate tx. propagating error to caller: gRPC call failed with status: status: Unknown, message:
    "failed to execute message;
        message index: 0:
        cannot update client with ID 07-tendermint-0:
        trusted validators validators:<address:\"\\006\\300\\363\\344|\\305\\307H&\\220\\210\\334/6A\\035:\\252'\\306\" pub_key:<ed25519:\"F\\267%C?[\\\"\\031\\010\\313\\370\\037/\\2179\\203s\\3301\\350\\210\\222\\356*z\\216=\\347\\277;_]\" >
        voting_power:500 > proposer:<address:\"\\006\\300\\363\\344|\\305\\307H&\\220\\210\\334/6A\\035:\\252'\\306\" pub_key:<ed25519:\"F\\267%C?[\\\"\\031\\010\\313\\370\\037/\\2179\\203s\\3301\\350\\210\\222\\356*z\\216=\\347\\277;_]\" 
        > voting_power:500 > total_voting_power:500 ,
        does not hash to latest trusted validators.
        Expected: 632730A03DEF630F77B61DF4092629007AE020B789713158FABCB104962FA54F,
        got: D6D4CE2ACF857B920DD58E104ECBF02A5F9E48F295903522B8572E0077A04193:
        invalid validator set [cosmos/ibc-go/v4@v4.4.0/modules/light-clients/07-tendermint/types/update.go:156] With gas wanted: '0' and gas used: '80984' ",
        details: [], metadata: MetadataMap {
        headers: {
            "content-type": "application/grpc",
            "x-cosmos-block-height": "37"
        }
}

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • Confirmed the correct type prefix in the PR title
  • Confirmed all author checklist items have been addressed
  • Confirmed that this PR does not change production code

@MSalopek MSalopek requested a review from a team as a code owner June 14, 2023 10:54
@MSalopek MSalopek marked this pull request as draft June 14, 2023 11:07
@MSalopek
Copy link
Contributor Author

Putting this on ice until ICSv3 is out.

@MSalopek MSalopek force-pushed the masa/780-sovereign-changeover-e2e branch from 3beac97 to 694100f Compare June 15, 2023 15:50
@MSalopek MSalopek changed the base branch from main to marius/895-transfer-channel June 15, 2023 16:07
@MSalopek
Copy link
Contributor Author

Superceeded by #1025

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.

Sovereign -> consumer changeover is validated with e2e testing from the ICS repo
1 participant