Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit f34d60a

Browse files
authored
Fix DSSendL2Block batch number (#3616)
1 parent e3cd415 commit f34d60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sequencer/l2block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ func (f *finalizer) storeL2Block(ctx context.Context, l2Block *L2Block) error {
491491
log.Infof("[ds-debug] l2 block %d [%d] transactions updated as selected in the pooldb", blockResponse.BlockNumber, l2Block.trackingNum)
492492

493493
// Send L2 block to data streamer
494-
err = f.DSSendL2Block(f.wipBatch.batchNumber, blockResponse, l2Block.getL1InfoTreeIndex())
494+
err = f.DSSendL2Block(l2Block.batch.batchNumber, blockResponse, l2Block.getL1InfoTreeIndex())
495495
if err != nil {
496496
//TODO: we need to halt/rollback the L2 block if we had an error sending to the data streamer?
497497
log.Errorf("error sending L2 block %d [%d] to data streamer, error: %v", blockResponse.BlockNumber, l2Block.trackingNum, err)

0 commit comments

Comments
 (0)