From 014db5e5b21dc8eb24712de8660752fa7b124a89 Mon Sep 17 00:00:00 2001 From: Lucas Bertrand Date: Tue, 12 Nov 2024 22:03:09 +0100 Subject: [PATCH] fix: out of gas on ZetaClient during `onRevert` (v22 backport) (#3145) * update constant * increase gas limit to process inbound * change from debug to info --- zetaclient/zetacore/client_monitor.go | 4 ++-- zetaclient/zetacore/constant.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zetaclient/zetacore/client_monitor.go b/zetaclient/zetacore/client_monitor.go index 90b720d0b9..5b3c823916 100644 --- a/zetaclient/zetacore/client_monitor.go +++ b/zetaclient/zetacore/client_monitor.go @@ -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 @@ -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 diff --git a/zetaclient/zetacore/constant.go b/zetaclient/zetacore/constant.go index ab13e741d0..bcc174667e 100644 --- a/zetaclient/zetacore/constant.go +++ b/zetaclient/zetacore/constant.go @@ -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 @@ -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