Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli committed May 31, 2024
1 parent 0ba74bc commit 285a399
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arbnode/batch_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,12 @@ func (b *BatchPoster) maybePostSequencerBatch(ctx context.Context) (bool, error)
if (config.ReorgResistanceMargin > 0 && config.ReorgResistanceMargin < config.MaxDelay) &&
(batchDuration >= config.MaxDelay-config.ReorgResistanceMargin) &&
(batchDuration <= config.MaxDelay || (batchDuration <= config.MaxDelay+config.ReorgResistanceMargin && !config.IgnoreReorgResistanceMargin)) {
log.Error(
"disabling batch posting as batch duration falls within the reorg-resistance-margin from max-delay",
"batchDuration", batchDuration,
"reorgResistanceMargin", config.ReorgResistanceMargin,
"maxDelay", config.MaxDelay,
)
disablePosting = true
}

Expand Down

0 comments on commit 285a399

Please sign in to comment.