Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
fa851f8
ammend based on feedback
Apr 30, 2025
27c7536
chore: empty blocks & lazy aggrgation (#2243)
tac0turtle May 2, 2025
351e1d0
remove unused
May 2, 2025
d2a6061
reset block timer when no txs are present
May 2, 2025
b9db5d6
Simplify
Manav-Aggarwal May 2, 2025
58d5dc4
Implement execValidate and insert back dataHash
Manav-Aggarwal May 2, 2025
e1dbbea
Add batchValidation in retriever
Manav-Aggarwal May 2, 2025
854af43
modify validation logic
Manav-Aggarwal May 2, 2025
ae1027b
Add DA Includer Loop
Manav-Aggarwal May 2, 2025
b441ce9
Fix test syntax
Manav-Aggarwal May 2, 2025
663f37e
Add Validate method for signed header
Manav-Aggarwal May 2, 2025
287988c
setDAIncluded for sequencers too
Manav-Aggarwal May 2, 2025
b675f3d
Fix first retriever test
Manav-Aggarwal May 3, 2025
f1e5936
Refactor retriever and fix more tests
Manav-Aggarwal May 3, 2025
ba4c23b
fixed all retriever tests
Manav-Aggarwal May 3, 2025
474c757
Add more tests to retriever and handle empty blobs
Manav-Aggarwal May 3, 2025
5b464e4
make fromProto more robust
Manav-Aggarwal May 3, 2025
debb51c
Add doc headers to add test methods in block package
Manav-Aggarwal May 3, 2025
a2b3c71
Make TestProcessNextDAHeader_MultipleHeadersAndBatches more robust
Manav-Aggarwal May 3, 2025
adb01f6
Fix from rebase
Manav-Aggarwal May 3, 2025
64f848c
fix publishBlock tests
Manav-Aggarwal May 3, 2025
ab1304e
Add daIncluderTests
Manav-Aggarwal May 3, 2025
ca16508
enable t.Parallel in all block tests
Manav-Aggarwal May 3, 2025
df22050
go mod tidy everywhere
Manav-Aggarwal May 3, 2025
2e9b229
catch errcheck in setfinal and add test for it in daIncluder
Manav-Aggarwal May 3, 2025
e555a59
fix lint
Manav-Aggarwal May 3, 2025
7c0414d
remove gci from golintci
Manav-Aggarwal May 3, 2025
3675dc6
Fix first test in sync_test
Manav-Aggarwal May 3, 2025
eef9b69
Fix all sync tests
Manav-Aggarwal May 4, 2025
770170a
fix execution_test.go
Manav-Aggarwal May 4, 2025
0ede403
Modify dummy
Manav-Aggarwal May 4, 2025
ce8e3f0
enhance daIncluder
Manav-Aggarwal May 4, 2025
8062955
fix first integration test
Manav-Aggarwal May 4, 2025
c380d28
Fix node_intergration_test
Manav-Aggarwal May 4, 2025
c3a32e8
Fix node package test
Manav-Aggarwal May 4, 2025
de5e6bd
fix lint
Manav-Aggarwal May 4, 2025
87dec50
Move batchSubmissionLogic out of sequencer
Manav-Aggarwal May 5, 2025
f03d0a5
Remove timestamp and appHash validation
Manav-Aggarwal May 5, 2025
b8194fe
Fix rebase issues
Manav-Aggarwal May 5, 2025
d1895e4
Add back isDAIncluded
Manav-Aggarwal May 5, 2025
f4475dc
Remove dataCh from retriever
Manav-Aggarwal May 5, 2025
2dcd061
add doc header for retriever
Manav-Aggarwal May 5, 2025
08d7846
random refactors
Manav-Aggarwal May 5, 2025
028e456
revert lazy aggregation adr changes and fix helper signature
Manav-Aggarwal May 5, 2025
6081ec8
ad DAHeight to NextState method
Manav-Aggarwal May 5, 2025
f7805cc
fix lint and parse flags test
Manav-Aggarwal May 5, 2025
cf34b85
Refactor
Manav-Aggarwal May 5, 2025
fe00e91
Clarify how DataHash is set
Manav-Aggarwal May 5, 2025
81944c8
fix data race issue
Manav-Aggarwal May 5, 2025
2011668
Protect GetLastState using mutex
Manav-Aggarwal May 5, 2025
5550982
Fix bug
Manav-Aggarwal May 7, 2025
45ba444
Fix lint
Manav-Aggarwal May 7, 2025
21c7231
remove channel from sequencer constructor
Manav-Aggarwal May 7, 2025
3b00beb
make datahashforempty private
Manav-Aggarwal May 7, 2025
f0d7bbc
Add DAIncluder in block manager
Manav-Aggarwal May 7, 2025
0ae49c1
fix run and update go mod
Manav-Aggarwal May 7, 2025
e83f9f5
Merge branch 'main' into manav/fix_batch_validation
julienrbrt May 14, 2025
1d299bd
fix: Refactor DA Inclusion logic (#2277)
Manav-Aggarwal May 15, 2025
61c04b6
Merge branch 'main' into manav/fix_batch_validation
julienrbrt May 15, 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
remove channel from sequencer constructor
  • Loading branch information
Manav-Aggarwal committed May 7, 2025
commit 21c72315c07c2f3e4f31c578bfd2eb69b3642ac9
16 changes: 7 additions & 9 deletions sequencers/single/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,15 @@ func NewSequencer(
batchTime time.Duration,
metrics *Metrics,
proposer bool,
batchSubmissionChan chan coresequencer.Batch,
) (*Sequencer, error) {
s := &Sequencer{
logger: logger,
da: da,
batchTime: batchTime,
rollupId: rollupId,
queue: NewBatchQueue(db, "batches"),
batchSubmissionChan: batchSubmissionChan,
metrics: metrics,
proposer: proposer,
logger: logger,
da: da,
batchTime: batchTime,
rollupId: rollupId,
queue: NewBatchQueue(db, "batches"),
metrics: metrics,
proposer: proposer,
}

loadCtx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
Expand Down
12 changes: 8 additions & 4 deletions sequencers/single/sequencer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ func TestNewSequencer(t *testing.T) {
db := ds.NewMapDatastore()
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()
seq, err := NewSequencer(ctx, log.NewNopLogger(), db, dummyDA, []byte("rollup1"), 10*time.Second, metrics, false, make(chan coresequencer.Batch, 100))
seq, err := NewSequencer(ctx, log.NewNopLogger(), db, dummyDA, []byte("rollup1"), 10*time.Second, metrics, false)
seq.SetBatchSubmissionChan(make(chan coresequencer.Batch, 100))
if err != nil {
t.Fatalf("Failed to create sequencer: %v", err)
}
Expand Down Expand Up @@ -58,7 +59,8 @@ func TestSequencer_SubmitRollupBatchTxs(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()
rollupId := []byte("rollup1")
seq, err := NewSequencer(ctx, log.NewNopLogger(), db, dummyDA, rollupId, 10*time.Second, metrics, false, make(chan coresequencer.Batch, 100))
seq, err := NewSequencer(ctx, log.NewNopLogger(), db, dummyDA, rollupId, 10*time.Second, metrics, false)
seq.SetBatchSubmissionChan(make(chan coresequencer.Batch, 100))
if err != nil {
t.Fatalf("Failed to create sequencer: %v", err)
}
Expand Down Expand Up @@ -110,7 +112,8 @@ func TestSequencer_SubmitRollupBatchTxs_EmptyBatch(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()
rollupId := []byte("rollup1")
seq, err := NewSequencer(ctx, log.NewNopLogger(), db, dummyDA, rollupId, 10*time.Second, metrics, false, make(chan coresequencer.Batch, 100))
seq, err := NewSequencer(ctx, log.NewNopLogger(), db, dummyDA, rollupId, 10*time.Second, metrics, false)
seq.SetBatchSubmissionChan(make(chan coresequencer.Batch, 100))
require.NoError(t, err, "Failed to create sequencer")
defer func() {
err := db.Close()
Expand Down Expand Up @@ -382,7 +385,8 @@ func TestSequencer_GetNextBatch_BeforeDASubmission(t *testing.T) {
db := ds.NewMapDatastore()
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
seq, err := NewSequencer(ctx, log.NewNopLogger(), db, mockDA, []byte("rollup1"), 1*time.Second, metrics, false, make(chan coresequencer.Batch, 100))
seq, err := NewSequencer(ctx, log.NewNopLogger(), db, mockDA, []byte("rollup1"), 1*time.Second, metrics, false)
seq.SetBatchSubmissionChan(make(chan coresequencer.Batch, 100))
if err != nil {
t.Fatalf("Failed to create sequencer: %v", err)
}
Expand Down