Skip to content

Commit edbdae9

Browse files
committed
feedback
1 parent 1103e7b commit edbdae9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

block/internal/syncing/syncer.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,10 +915,9 @@ func (s *Syncer) VerifyForcedInclusionTxs(ctx context.Context, currentState type
915915
// were legitimately filtered (e.g., malformed, unparseable, or otherwise invalid).
916916
validForcedTxs := forcedIncludedTxsEvent.Txs
917917
if len(forcedIncludedTxsEvent.Txs) > 0 {
918-
filterStatuses, filterErr := s.exec.FilterTxs(ctx, forcedIncludedTxsEvent.Txs, executionInfo.MaxGas, common.DefaultMaxBlobSize, true)
918+
filterStatuses, filterErr := s.exec.FilterTxs(ctx, forcedIncludedTxsEvent.Txs, common.DefaultMaxBlobSize, executionInfo.MaxGas, true)
919919
if filterErr != nil {
920-
s.logger.Warn().Err(filterErr).Msg("failed to filter forced inclusion txs, checking no txs")
921-
validForcedTxs = [][]byte{}
920+
return fmt.Errorf("failed to filter forced inclusion txs: %w", filterErr)
922921
} else {
923922
validForcedTxs = make([][]byte, 0, len(forcedIncludedTxsEvent.Txs))
924923
for i, status := range filterStatuses {

block/internal/syncing/syncer_forced_inclusion_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
// setupFilterTxsMock sets up the FilterTxs mock to return FilterOK for all transactions.
2828
// This is the default behavior for tests that don't specifically test filtering.
2929
func setupFilterTxsMock(mockExec *testmocks.MockExecutor) {
30+
mockExec.On("GetExecutionInfo", mock.Anything).Return(execution.ExecutionInfo{MaxGas: 1000000}, nil).Maybe()
3031
mockExec.On("FilterTxs", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(
3132
func(ctx context.Context, txs [][]byte, maxBytes, maxGas uint64, hasForceIncludedTransaction bool) []execution.FilterStatus {
3233
result := make([]execution.FilterStatus, len(txs))

0 commit comments

Comments
 (0)