Skip to content

Commit

Permalink
Add back in the confirmation height (ethereum#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlfloersch authored Nov 14, 2020
1 parent 3236f1f commit 92ab231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup/sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (s *SyncService) sequencerIngestQueue() {
s.txCache.Range(func(index uint64, rtx *RollupTransaction) {
// The transaction has not been executed and is
// sufficiently old.
if !rtx.executed && rtx.blockHeight <= tipHeight {
if !rtx.executed && rtx.blockHeight+s.confirmationDepth <= tipHeight {
txs = append(txs, rtx)
} else if !rtx.executed {
log.Debug("Too early to execute tx", "enqueue-height", rtx.blockHeight, "tip-height", tipHeight, "queue-index", index)
Expand Down

0 comments on commit 92ab231

Please sign in to comment.