Skip to content

Commit

Permalink
replace allinbits/ibc-go with patched cosmos/ibc-go
Browse files Browse the repository at this point in the history
Also fix panic in TestRedelegationNoConsumer
  • Loading branch information
tbruyelle committed Aug 30, 2023
1 parent a4c4858 commit 14bb349
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ require (
// following versions might cause unexpected behavior
replace github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7

replace github.com/cosmos/ibc-go/v7 => github.com/allinbits/ibc-go/v7 v7.0.0-20230804095822-27dc704b7dec
replace github.com/cosmos/ibc-go/v7 => github.com/cosmos/ibc-go/v7 v7.2.1-0.20230830084256-668fa1d67ef8
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
github.com/allinbits/ibc-go/v7 v7.0.0-20230804095822-27dc704b7dec h1:/xskaNv9DTdO0TrJJFcEENKP6uX3F0c+edM8OwM5eqM=
github.com/allinbits/ibc-go/v7 v7.0.0-20230804095822-27dc704b7dec/go.mod h1:7MptlWeIyqmDiuJeRAFqBvXKY8Hybd+rF8vMSmGd2zg=
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0=
Expand Down Expand Up @@ -395,6 +393,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK
github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek=
github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38=
github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A=
github.com/cosmos/ibc-go/v7 v7.2.1-0.20230830084256-668fa1d67ef8 h1:bynn9Fdu/PCQwqWkxAnJi392b2EU9/OPl37kM58nNn8=
github.com/cosmos/ibc-go/v7 v7.2.1-0.20230830084256-668fa1d67ef8/go.mod h1:OOcjKIRku/j1Xs1RgKK0yvKRrJ5iFuZYMetR1n3yMlc=
github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM=
github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0=
github.com/cosmos/ledger-cosmos-go v0.12.2 h1:/XYaBlE2BJxtvpkHiBm97gFGSGmYGKunKyF3nNqAXZA=
Expand Down
4 changes: 4 additions & 0 deletions tests/integration/unbonding.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ func (s *CCVTestSuite) TestRedelegationNoConsumer() {
s.providerCtx().BlockTime().Add(stakingKeeper.UnbondingTime(s.providerCtx())),
)

// required before call to incrementTimeByUnbondingPeriod or else a panic
// occurs in ibc-go because trusted validators don't match last trusted.
s.providerChain.NextBlock()

// Increment time so that the unbonding period passes on the provider
incrementTimeByUnbondingPeriod(s, Provider)

Expand Down

0 comments on commit 14bb349

Please sign in to comment.