Skip to content

Commit

Permalink
Merge pull request #177
Browse files Browse the repository at this point in the history
Release v0.10.1
  • Loading branch information
bsrinivas8687 authored Jan 12, 2023
2 parents ff59c35 + 5b6f915 commit bbe6fab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions upgrades/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
ibcicacontrollertypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/controller/types"
ibcicahosttypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
ibcicatypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/types"
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"

hubutils "github.com/sentinel-official/hub/utils"
custommintkeeper "github.com/sentinel-official/hub/x/mint/keeper"
Expand Down Expand Up @@ -61,10 +62,17 @@ func Handler(
sdk.MsgTypeURL(&distributiontypes.MsgWithdrawDelegatorReward{}),
sdk.MsgTypeURL(&distributiontypes.MsgWithdrawValidatorCommission{}),
sdk.MsgTypeURL(&govtypes.MsgVote{}),
sdk.MsgTypeURL(&govtypes.MsgVoteWeighted{}),
sdk.MsgTypeURL(&ibctransfertypes.MsgTransfer{}),
sdk.MsgTypeURL(&stakingtypes.MsgBeginRedelegate{}),
sdk.MsgTypeURL(&stakingtypes.MsgCreateValidator{}),
sdk.MsgTypeURL(&stakingtypes.MsgDelegate{}),
sdk.MsgTypeURL(&stakingtypes.MsgEditValidator{}),
sdk.MsgTypeURL(&stakingtypes.MsgUndelegate{}),
sdk.MsgTypeURL(&wasmtypes.MsgExecuteContract{}),
sdk.MsgTypeURL(&wasmtypes.MsgInstantiateContract{}),
sdk.MsgTypeURL(&wasmtypes.MsgInstantiateContract2{}),
sdk.MsgTypeURL(&wasmtypes.MsgStoreCode{}),
},
}
)
Expand Down
8 changes: 7 additions & 1 deletion x/vpn/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ import (
"github.com/sentinel-official/hub/x/vpn/keeper"
)

func cacheContext(c sdk.Context) (cc sdk.Context, writeCache func()) {
cms := c.MultiStore().CacheMultiStore()
cc = c.WithMultiStore(cms)
return cc, cms.Write
}

func EndBlock(ctx sdk.Context, k keeper.Keeper) abcitypes.ValidatorUpdates {
ctx, write := ctx.CacheContext()
ctx, write := cacheContext(ctx)
defer write()

node.EndBlock(ctx, k.Node)
Expand Down

0 comments on commit bbe6fab

Please sign in to comment.