Skip to content

Commit

Permalink
Problem: require gas for single method in relayer precompile is less …
Browse files Browse the repository at this point in the history
…than consumed

missing gas consume in ante handlers
  • Loading branch information
mmsqe committed May 30, 2024
1 parent 1ffb99b commit e5995fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* [#1407](https://github.com/crypto-org-chain/cronos/pull/1407) Add end-to-end encryption module.
* [#1414](https://github.com/crypto-org-chain/cronos/pull/1414) Integrate new evm tx format.
* [#1458](https://github.com/crypto-org-chain/cronos/pull/1458) Adjust require gas for recvPacket when ReceiverChainIsSource.
* [#](https://github.com/crypto-org-chain/cronos/pull/) Adjust require gas in relayer precompile to be closed with actual consumed.

### Improvements

Expand Down
4 changes: 2 additions & 2 deletions x/cronos/keeper/precompiles/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ func init() {
case UpgradeClient:
relayerGasRequiredByMethod[methodID] = 400000
case ConnectionOpenInit:
relayerGasRequiredByMethod[methodID] = 19755
relayerGasRequiredByMethod[methodID] = 94399
case ConnectionOpenTry:
relayerGasRequiredByMethod[methodID] = 38468
case ConnectionOpenAck:
relayerGasRequiredByMethod[methodID] = 29603
case ConnectionOpenConfirm:
relayerGasRequiredByMethod[methodID] = 12865
case ChannelOpenInit:
relayerGasRequiredByMethod[methodID] = 68701
relayerGasRequiredByMethod[methodID] = 138568
case ChannelOpenTry:
relayerGasRequiredByMethod[methodID] = 70562
case ChannelOpenAck:
Expand Down

0 comments on commit e5995fb

Please sign in to comment.