Skip to content

Commit

Permalink
interchaintests for v20 (#3281)
Browse files Browse the repository at this point in the history
* Test for removing the VSCMaturedPacket

* Tests for inactive validators

* Test for consumer proposal migrations

* Tests for old wasm contracts & consumer-modification

---------

Co-authored-by: MSalopek <[email protected]>
  • Loading branch information
fastfadingviolets and MSalopek authored Sep 16, 2024
1 parent 233c5c1 commit 829e302
Show file tree
Hide file tree
Showing 12 changed files with 1,443 additions and 301 deletions.
10 changes: 9 additions & 1 deletion tests/interchain/chainsuite/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"strconv"
"strings"
"sync"
"time"

Expand Down Expand Up @@ -33,6 +34,7 @@ type ValidatorWallet struct {
Moniker string
Address string
ValoperAddress string
ValConsAddress string
}

func chainFromCosmosChain(cosmos *cosmos.CosmosChain, relayerWallet ibc.Wallet) (*Chain, error) {
Expand Down Expand Up @@ -106,7 +108,8 @@ func (c *Chain) WaitForProposalStatus(ctx context.Context, proposalID string, st
if err != nil {
return err
}
maxHeight := chainHeight + UpgradeDelta
// At 4s per block, 75 blocks is about 5 minutes.
maxHeight := chainHeight + 75
_, err = cosmos.PollForProposalStatusV1(ctx, c.CosmosChain, chainHeight, maxHeight, uint64(propID), status)
return err
}
Expand Down Expand Up @@ -250,12 +253,17 @@ func getValidatorWallets(ctx context.Context, chain *Chain) ([]ValidatorWallet,
if err != nil {
return err
}
valCons, _, err := chain.Validators[i].ExecBin(ctx, "comet", "show-address")
if err != nil {
return err
}
lock.Lock()
defer lock.Unlock()
wallets[i] = ValidatorWallet{
Moniker: moniker,
Address: address,
ValoperAddress: valoperAddress,
ValConsAddress: strings.TrimSpace(string(valCons)),
}
return nil
})
Expand Down
Loading

0 comments on commit 829e302

Please sign in to comment.