Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a18e75f
feat: forced inclusion
julienrbrt Nov 21, 2025
5bbfe08
Merge branch 'main' into julien/fi
julienrbrt Nov 24, 2025
46087a4
Apply suggestions from code review
julienrbrt Nov 24, 2025
1412fc2
Merge branch 'main' into julien/fi
julienrbrt Nov 25, 2025
0fb6264
feat(evm): add force inclusion command
julienrbrt Nov 26, 2025
a928c93
docs: add description about da epoch
julienrbrt Nov 26, 2025
fcf4b08
add smoothing checks
julienrbrt Nov 26, 2025
d787575
add docs
julienrbrt Nov 26, 2025
379e793
Merge branch 'main' into julien/fi
julienrbrt Nov 27, 2025
f6c7b01
ai docs
julienrbrt Nov 27, 2025
3a211d3
Merge branch 'julien/fi' into julien/fi-evm-cmd
julienrbrt Nov 27, 2025
bc0bc97
wip
julienrbrt Nov 27, 2025
2786d7b
skip gibberish txs
julienrbrt Nov 27, 2025
d96c74c
use local go.mod
julienrbrt Nov 27, 2025
fe2f80c
cleanups
julienrbrt Nov 27, 2025
230263d
Merge branch 'main' into julien/fi
julienrbrt Nov 28, 2025
28b675d
feat: proxy all other msgs to ev-reth
julienrbrt Nov 28, 2025
fe51201
Merge branch 'julien/fi' into julien/fi-evm-cmd
julienrbrt Nov 28, 2025
e5ba965
implement feedback
julienrbrt Dec 1, 2025
d46db8c
feedback 2/2
julienrbrt Dec 1, 2025
550aceb
Merge branch 'main' into julien/fi
julienrbrt Dec 1, 2025
a587a45
chore: docs nits
julienrbrt Dec 1, 2025
55124ef
Merge branch 'main' into julien/fi
julienrbrt Dec 2, 2025
5755287
Merge branch 'julien/fi' into julien/fi-evm-cmd
julienrbrt Dec 2, 2025
aab910d
api break
julienrbrt Dec 2, 2025
689fdfa
Merge branch 'main' into julien/fi-evm-cmd
julienrbrt Dec 3, 2025
0d98330
merge conflict
julienrbrt Dec 3, 2025
2832ee4
optimize tx sanity checks
julienrbrt Dec 3, 2025
cc61206
modernize
julienrbrt Dec 3, 2025
bb4f511
chore: fix linting
julienrbrt Dec 4, 2025
91e83e5
add replaces
julienrbrt Dec 4, 2025
caa7fba
chore: disable feature again. Code cleanup
julienrbrt Dec 4, 2025
59bc5bb
Merge branch 'main' into julien/fi-evm-cmd
julienrbrt Dec 4, 2025
3a9144b
add changelog
julienrbrt Dec 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feedback 2/2
  • Loading branch information
julienrbrt committed Dec 1, 2025
commit d46db8c1e13293dcc5aabc3a7ab5ca9e999be8db
7 changes: 1 addition & 6 deletions sequencers/based/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ func (s *BasedSequencer) GetNextBatch(ctx context.Context, req coresequencer.Get
if err != nil {
// Check if forced inclusion is not configured
if errors.Is(err, block.ErrForceInclusionNotConfigured) {
s.logger.Error().Msg("forced inclusion not configured, returning empty batch")
return &coresequencer.GetNextBatchResponse{
Batch: &coresequencer.Batch{Transactions: nil},
Timestamp: time.Now(),
BatchData: req.LastBatchData,
}, nil
return nil, errors.New("forced inclusion not configured, returning empty batch")
} else if errors.Is(err, coreda.ErrHeightFromFuture) {
// If we get a height from future error, keep the current DA height and return batch
// We'll retry the same height on the next call until DA produces that block
Expand Down
6 changes: 2 additions & 4 deletions sequencers/based/sequencer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,8 @@ func TestBasedSequencer_GetNextBatch_NotConfigured(t *testing.T) {
}

resp, err := seq.GetNextBatch(context.Background(), req)
require.NoError(t, err)
require.NotNil(t, resp)
require.NotNil(t, resp.Batch)
assert.Equal(t, 0, len(resp.Batch.Transactions))
require.Error(t, err)
require.Nil(t, resp)
}

func TestBasedSequencer_GetNextBatch_WithMaxBytes(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions sequencers/single/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ func (bq *BatchQueue) AddBatch(ctx context.Context, batch coresequencer.Batch) e

// Prepend adds a batch to the front of the queue (before head position).
// This is used to return transactions that couldn't fit in the current batch.
// The batch is NOT persisted to the DB since these are transactions that were
// already in the queue or were just processed.
// TODO(@julienrbrt): The batch is currently NOT persisted to the DB since these are transactions that were already in the queue or were just processed. -- FI txs are lost, this should be tackled.
func (bq *BatchQueue) Prepend(ctx context.Context, batch coresequencer.Batch) error {
bq.mu.Lock()
defer bq.mu.Unlock()
Expand Down
Loading