From f239bbfc833d8087fe9b970248c907b5a61fe965 Mon Sep 17 00:00:00 2001 From: Alonso Date: Mon, 6 May 2024 12:15:08 +0200 Subject: [PATCH] fix --- claimtxman/monitor_compressed_txs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/claimtxman/monitor_compressed_txs.go b/claimtxman/monitor_compressed_txs.go index 4191aacc..2e2d8497 100644 --- a/claimtxman/monitor_compressed_txs.go +++ b/claimtxman/monitor_compressed_txs.go @@ -335,13 +335,14 @@ func (tm *MonitorCompressedTxs) SendClaims(pendingTx *PendingTxs, onlyFirstOne b auth.GasLimit = estimatedTx.Gas() + tm.gasOffset log.Debug("New GAS: ", auth.GasLimit) // Send claim tx - tx, err := tm.etherMan.SendCompressedClaims(tm.auth, group.DbEntry.CompressedTxData) + tx, err := tm.etherMan.SendCompressedClaims(&auth, group.DbEntry.CompressedTxData) if err != nil { msg := fmt.Sprintf("failed to call SMC SendCompressedClaims for group %d: %v", group.DbEntry.GroupID, err) log.Warn(msg) group.DbEntry.LastLog = msg continue } + log.Debug("Gas used: ", tx.Gas()) log.Infof("Send claim tx try: %d for group_id:%d deposits_id:%s txHash:%s", group.DbEntry.NumRetries, group.DbEntry.GroupID, group.GetTxsDepositIDString(), tx.Hash().String()) group.DbEntry.Status = ctmtypes.MonitoredTxGroupStatusClaiming group.DbEntry.AddPendingTx(tx.Hash())