Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

log reprocess need #2309

Merged
merged 2 commits into from
Jul 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update finalizer.go
ToniRamirezM authored Jul 20, 2023

Partially verified

This commit is signed with the committer’s verified signature.
gsmet’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
commit f14e4b8de55a7a1f9a96f57be6dc8ad7a6355da3
2 changes: 1 addition & 1 deletion sequencer/finalizer.go
Original file line number Diff line number Diff line change
@@ -646,7 +646,7 @@ func (f *finalizer) handleProcessTransactionResponse(ctx context.Context, tx *Tx
if err != nil {
log.Warnf("EffectiveGasPrice is disabled, but failed to calculate BreakEvenGasPrice: %s", err)
} else {
// Compute the abosulte difference between tx.BreakEvenGasPrice - newBreakEvenGasPrice
// Compute the absolute difference between tx.BreakEvenGasPrice - newBreakEvenGasPrice
diff := new(big.Int).Abs(new(big.Int).Sub(tx.BreakEvenGasPrice, newBreakEvenGasPrice))
// Compute max difference allowed of breakEvenGasPrice
maxDiff := new(big.Int).Div(new(big.Int).Mul(tx.BreakEvenGasPrice, f.maxBreakEvenGasPriceDeviationPercentage), big.NewInt(100)) //nolint:gomnd