Skip to content

Commit 74b7b5f

Browse files
committed
cleanup
1 parent a680309 commit 74b7b5f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

block/internal/syncing/syncer.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,6 @@ func (s *Syncer) verifyForcedInclusionTxs(currentState types.State, data *types.
749749
// Calculate grace boundary: epoch end + (grace periods × epoch size)
750750
graceBoundary := pending.EpochEnd + (s.genesis.ForcedInclusionGracePeriod * s.genesis.DAEpochForcedInclusion)
751751

752-
// If current DA height is past the grace boundary, these txs should have been included
753752
if currentState.DAHeight > graceBoundary {
754753
maliciousTxs = append(maliciousTxs, pending)
755754
s.logger.Warn().
@@ -761,22 +760,12 @@ func (s *Syncer) verifyForcedInclusionTxs(currentState types.State, data *types.
761760
Msg("forced inclusion transaction past grace boundary - marking as malicious")
762761
} else {
763762
remainingPending = append(remainingPending, pending)
764-
765-
// Track if we're in the grace period (past epoch end but within grace boundary)
766763
if currentState.DAHeight > pending.EpochEnd {
767764
txsInGracePeriod++
768-
s.logger.Info().
769-
Uint64("current_da_height", currentState.DAHeight).
770-
Uint64("epoch_end", pending.EpochEnd).
771-
Uint64("grace_boundary", graceBoundary).
772-
Uint64("grace_periods", s.genesis.ForcedInclusionGracePeriod).
773-
Str("tx_hash", pending.TxHash[:16]).
774-
Msg("forced inclusion transaction in grace period - not yet malicious")
775765
}
776766
}
777767
}
778768

779-
// Update metrics for grace period tracking
780769
s.metrics.ForcedInclusionTxsInGracePeriod.Set(float64(txsInGracePeriod))
781770

782771
// Update pending map - clear old entries and store only remaining pending
@@ -790,7 +779,6 @@ func (s *Syncer) verifyForcedInclusionTxs(currentState types.State, data *types.
790779

791780
// If there are transactions past grace boundary that weren't included, sequencer is malicious
792781
if len(maliciousTxs) > 0 {
793-
// Update metrics for malicious detection
794782
s.metrics.ForcedInclusionTxsMalicious.Add(float64(len(maliciousTxs)))
795783

796784
s.logger.Error().

0 commit comments

Comments
 (0)