Skip to content

Commit

Permalink
feat!: More global fee bypasses (#795)
Browse files Browse the repository at this point in the history
* Increase gas bypass limit to 2m

* Add msgChannelOpen(Try|Confirm|Ack)
  • Loading branch information
Reecepbcups authored Aug 15, 2023
1 parent b64b172 commit f3618c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import (
globalfeekeeper "github.com/CosmosContracts/juno/v17/x/globalfee/keeper"
)

const maxBypassMinFeeMsgGasUsage = 1_000_000
// Lower back to 1 mil after https://github.com/cosmos/relayer/issues/1255
const maxBypassMinFeeMsgGasUsage = 2_000_000

// HandlerOptions extends the SDK's AnteHandler options by requiring the IBC
// channel keeper and a BankKeeper with an added method for fee sharing.
Expand Down
3 changes: 3 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ func GetDefaultBypassFeeMessages() []string {
sdk.MsgTypeURL(&ibctransfertypes.MsgTransfer{}),
sdk.MsgTypeURL(&ibcchanneltypes.MsgTimeout{}),
sdk.MsgTypeURL(&ibcchanneltypes.MsgTimeoutOnClose{}),
sdk.MsgTypeURL(&ibcchanneltypes.MsgChannelOpenTry{}),
sdk.MsgTypeURL(&ibcchanneltypes.MsgChannelOpenConfirm{}),
sdk.MsgTypeURL(&ibcchanneltypes.MsgChannelOpenAck{}),
}
}

Expand Down

0 comments on commit f3618c3

Please sign in to comment.