arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
Merge pull request #567 from hermeznetwork/fix/tx-manager-redundant-condition

tx manager: remove redundant error check
arnau 17317030+arnaucube@users.noreply.github.com
Tue, 23 Feb 2021 16:10:38 +0100
commit

5a11aa5c27b4cb3d365a3e20dd294cdc4d2446b8

parent

3e5e9bd6333766adc19d223382cc8c65681caf5b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M coordinator/txmanager.go → coordinator/txmanager.go

@@ -231,7 +231,7 @@ log.Warnw("TxManager ethClient.RollupForgeBatch incrementing gasPrice",

"err", err, "gasPrice", auth.GasPrice, "batchNum", batchInfo.BatchNum) auth.GasPrice = addPerc(auth.GasPrice, 10) attempt-- - } else if err != nil { + } else { log.Errorw("TxManager ethClient.RollupForgeBatch", "attempt", attempt, "err", err, "block", t.stats.Eth.LastBlock.Num+1, "batchNum", batchInfo.BatchNum)