From d3bd47b312ece57e882f82d7ef1b862bbc66da3d Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Fri, 12 Dec 2025 11:42:24 +0100 Subject: [PATCH 1/2] fix(syncing): skip forced txs checks for p2p blocks --- block/internal/syncing/syncer.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/block/internal/syncing/syncer.go b/block/internal/syncing/syncer.go index 08e177cd6..4c7982af5 100644 --- a/block/internal/syncing/syncer.go +++ b/block/internal/syncing/syncer.go @@ -595,11 +595,13 @@ func (s *Syncer) trySyncNextBlock(event *common.DAHeightEvent) error { } // Verify forced inclusion transactions if configured - if err := s.verifyForcedInclusionTxs(currentState, data); err != nil { - s.logger.Error().Err(err).Uint64("height", nextHeight).Msg("forced inclusion verification failed") - if errors.Is(err, errMaliciousProposer) { - s.cache.RemoveHeaderDAIncluded(headerHash) - return err + if event.Source == common.SourceDA { + if err := s.verifyForcedInclusionTxs(currentState, data); err != nil { + s.logger.Error().Err(err).Uint64("height", nextHeight).Msg("forced inclusion verification failed") + if errors.Is(err, errMaliciousProposer) { + s.cache.RemoveHeaderDAIncluded(headerHash) + return err + } } } From a40a6728a902bca7bf320b440683cdb0bb7eeae7 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Fri, 12 Dec 2025 11:43:09 +0100 Subject: [PATCH 2/2] doc --- block/internal/syncing/syncer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/internal/syncing/syncer.go b/block/internal/syncing/syncer.go index 4c7982af5..8c1909583 100644 --- a/block/internal/syncing/syncer.go +++ b/block/internal/syncing/syncer.go @@ -540,7 +540,7 @@ func (s *Syncer) processHeightEvent(event *common.DAHeightEvent) { } // only save to p2p stores if the event came from DA - if event.Source == common.SourceDA { + if event.Source == common.SourceDA { // TODO(@julienrbrt): To be reverted once DA Hints are merged (https://github.com/evstack/ev-node/pull/2891) g, ctx := errgroup.WithContext(s.ctx) g.Go(func() error { // broadcast header locally only — prevents spamming the p2p network with old height notifications,