Skip to content

Commit

Permalink
Fix DSSendL2Block batch number (0xPolygonHermez#3616)
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusmor authored and Stefan-Ethernal committed May 24, 2024
1 parent fb2c3e9 commit dd9ae0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sequencer/l2block.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func (f *finalizer) storeL2Block(ctx context.Context, l2Block *L2Block) error {
log.Infof("[ds-debug] l2 block %d [%d] transactions updated as selected in the pooldb", blockResponse.BlockNumber, l2Block.trackingNum)

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

0 comments on commit dd9ae0f

Please sign in to comment.