0xPolygonHermez / zkevm-node

Go implementation of a node that operates the Polygon zkEVM Network
Other
539 stars 699 forks source link

Fix DSSendL2Block batch number #3616

Closed agnusmor closed 6 months ago

agnusmor commented 6 months ago

What does this PR do?

Fixes DSSendL2Block batch number. It must use batchNumber field from the l2Block.batch object, as in parallel mode the f.wipBatch can be different of the batch that is being stored (f.sipBatch). Therefore, to be safe, we must use the batchNumber of the batch to which the L2Block belongs (l2Block.batch)

Reviewers

Main reviewers:

@ToniRamirezM