Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM committed Jan 26, 2024
1 parent a6edf5e commit 4be8613
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sequencer/l2block.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,7 @@ func (f *finalizer) storeL2Block(ctx context.Context, l2Block *L2Block) error {
}

// Send L2 block to data streamer
l1InfoTreeIndex := uint32(0)
if l2Block != nil {
l1InfoTreeIndex = l2Block.getL1InfoTreeIndex()
}
err = f.DSSendL2Block(f.wipBatch.batchNumber, blockResponse, l1InfoTreeIndex)
err = f.DSSendL2Block(f.wipBatch.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 4be8613

Please sign in to comment.