Skip to content

Commit 160f010

Browse files
authored
prepare changes for rc4 release (#310)
* bump to SDK v0.43.0-rc3 (#308) * SDK v0.43.0-rc3 * add capability fixes * update changelog
1 parent 0d9eef8 commit 160f010

File tree

5 files changed

+11
-19
lines changed

5 files changed

+11
-19
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
3434

3535
# Changelog
3636

37-
## [v1.0.0-rc2](https://github.com/cosmos/ibc-go/releases/tag/v1.0.0-rc2) - 2021-07-20
37+
## [v1.0.0-rc4](https://github.com/cosmos/ibc-go/releases/tag/v1.0.0-rc4) - 2021-08-05
3838

3939
### Bug Fixes
4040

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alp
77
require (
88
github.com/armon/go-metrics v0.3.9
99
github.com/confio/ics23/go v0.6.6
10-
github.com/cosmos/cosmos-sdk v0.43.0-rc2
10+
github.com/cosmos/cosmos-sdk v0.43.0-rc3
1111
github.com/gogo/protobuf v1.3.3
1212
github.com/golang/protobuf v1.5.2
1313
github.com/gorilla/mux v1.8.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7
164164
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
165165
github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
166166
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
167-
github.com/cosmos/cosmos-sdk v0.43.0-rc2 h1:9xww4vDnsNyZyF1p9U4zpc8tc5Ctx763WQWLccddP8A=
168-
github.com/cosmos/cosmos-sdk v0.43.0-rc2/go.mod h1:ctcrTEAhei9s8O3KSNvL0dxe+fVQGp07QyRb/7H9JYE=
167+
github.com/cosmos/cosmos-sdk v0.43.0-rc3 h1:vON4QgwSWCbDJF2brO/CqIjnMvjwAYXZS9p9on2qWcQ=
168+
github.com/cosmos/cosmos-sdk v0.43.0-rc3/go.mod h1:ctcrTEAhei9s8O3KSNvL0dxe+fVQGp07QyRb/7H9JYE=
169169
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
170170
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
171171
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=

modules/core/02-client/keeper/client_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,8 @@ func (suite *KeeperTestSuite) TestUpdateClientEventEmission() {
678678

679679
result, err := suite.chainA.SendMsgs(msg)
680680
suite.Require().NoError(err)
681-
// first event type is "message"
682-
updateEvent := result.Events[1]
683-
681+
// first event type is "message", followed by 2 "tx" events in ante
682+
updateEvent := result.Events[3]
684683
suite.Require().Equal(clienttypes.EventTypeUpdateClient, updateEvent.Type)
685684

686685
// use a boolean to ensure the update event contains the header

testing/simapp/app.go

+5-12
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
abci "github.com/tendermint/tendermint/abci/types"
1414
"github.com/tendermint/tendermint/libs/log"
1515
tmos "github.com/tendermint/tendermint/libs/os"
16-
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
1716
dbm "github.com/tendermint/tm-db"
1817

1918
"github.com/cosmos/cosmos-sdk/baseapp"
@@ -260,6 +259,9 @@ func NewSimApp(
260259
// note replicate if you do not need to test core IBC or light clients.
261260
scopedIBCMockKeeper := app.CapabilityKeeper.ScopeToModule(ibcmock.ModuleName)
262261

262+
// seal capability keeper after scoping modules
263+
app.CapabilityKeeper.Seal()
264+
263265
// add keepers
264266
app.AccountKeeper = authkeeper.NewAccountKeeper(
265267
appCodec, keys[authtypes.StoreKey], app.GetSubspace(authtypes.ModuleName), authtypes.ProtoBaseAccount, maccPerms,
@@ -375,8 +377,9 @@ func NewSimApp(
375377
// there is nothing left over in the validator fee pool, so as to keep the
376378
// CanWithdrawInvariant invariant.
377379
// NOTE: staking module is required if HistoricalEntries param > 0
380+
// NOTE: capability module's beginblocker must come before any modules using capabilities (e.g. IBC)
378381
app.mm.SetOrderBeginBlockers(
379-
upgradetypes.ModuleName, minttypes.ModuleName, distrtypes.ModuleName, slashingtypes.ModuleName,
382+
upgradetypes.ModuleName, capabilitytypes.ModuleName, minttypes.ModuleName, distrtypes.ModuleName, slashingtypes.ModuleName,
380383
evidencetypes.ModuleName, stakingtypes.ModuleName, ibchost.ModuleName,
381384
)
382385
app.mm.SetOrderEndBlockers(crisistypes.ModuleName, govtypes.ModuleName, stakingtypes.ModuleName)
@@ -453,16 +456,6 @@ func NewSimApp(
453456
if err := app.LoadLatestVersion(); err != nil {
454457
tmos.Exit(err.Error())
455458
}
456-
457-
// Initialize and seal the capability keeper so all persistent capabilities
458-
// are loaded in-memory and prevent any further modules from creating scoped
459-
// sub-keepers.
460-
// This must be done during creation of baseapp rather than in InitChain so
461-
// that in-memory capabilities get regenerated on app restart.
462-
// Note that since this reads from the store, we can only perform it when
463-
// `loadLatest` is set to true.
464-
ctx := app.BaseApp.NewUncachedContext(true, tmproto.Header{})
465-
app.CapabilityKeeper.InitializeAndSeal(ctx)
466459
}
467460

468461
app.ScopedIBCKeeper = scopedIBCKeeper

0 commit comments

Comments
 (0)