Skip to content

Commit

Permalink
fix: out of gas on ZetaClient during onRevert (v22 backport) (#3145)
Browse files Browse the repository at this point in the history
* update constant

* increase gas limit to process inbound

* change from debug to info
  • Loading branch information
lumtis authored Nov 12, 2024
1 parent 6ee64b9 commit f92effb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions zetaclient/zetacore/client_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (c *Client) monitorVoteOutboundResult(
}
}
default:
c.logger.Debug().Fields(logFields).Msg("monitorVoteOutboundResult: successful")
c.logger.Info().Fields(logFields).Msg("monitorVoteOutboundResult: successful")
}

return nil
Expand Down Expand Up @@ -159,7 +159,7 @@ func (c *Client) monitorVoteInboundResult(
}

default:
c.logger.Debug().Fields(logFields).Msgf("monitorVoteInboundResult: successful")
c.logger.Info().Fields(logFields).Msgf("monitorVoteInboundResult: successful")
}

return nil
Expand Down
4 changes: 2 additions & 2 deletions zetaclient/zetacore/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
PostTSSGasLimit = 500_000

// PostVoteInboundExecutionGasLimit is the gas limit for voting on observed inbound tx and executing it
PostVoteInboundExecutionGasLimit = 7_000_000
PostVoteInboundExecutionGasLimit = 10_000_000

// PostVoteInboundMessagePassingExecutionGasLimit is the gas limit for voting on, and executing ,observed inbound tx related to message passing (coin_type == zeta)
PostVoteInboundMessagePassingExecutionGasLimit = 4_000_000
Expand Down Expand Up @@ -47,7 +47,7 @@ const (

// PostVoteOutboundRevertGasLimit is the gas limit for voting on observed outbound tx for revert (when outbound fails)
// The value needs to be higher because reverting implies interacting with the EVM to perform swaps for the gas token
PostVoteOutboundRevertGasLimit = 4_000_000
PostVoteOutboundRevertGasLimit = 7_000_000
)

// constants for monitoring tx results
Expand Down

0 comments on commit f92effb

Please sign in to comment.