Skip to content

Commit 350a88c

Browse files
Merge pull request 0xPolygon#148 from 0xPolygon/EmpieichO-patch-2
Update zkEVM doc: sequencer-resistance.md
2 parents 4b70c57 + 31071d2 commit 350a88c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/zkEVM/architecture/protocol/malfunction-resistance/sequencer-resistance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mapping(uint64 => bytes32) public forcedBatches;
1717

1818
Although the Trusted Sequencer is incentivized to sequence the forced batches published in the `forcedBatches` mapping, this does not guarantee finality of the transactions' execution in those batches.
1919

20-
In order to ensure finality in the case of Trusted Sequencer's malfunction, the L1 `PolygonZkEVM.sol` contract has an alternative batch sequencing function called `sequenceForceBatches`. This function allows anyone to sequence forced batches that have been published in the `multiplierBatchFee` mapping for a time period, specified by the public constant `FORCE_BATCH_TIMEOUT`, yet they have not been sequenced. The timeout is set to 5 days.
20+
In order to ensure finality in the case of Trusted Sequencer's malfunction, the L1 `PolygonZkEVM.sol` contract has an alternative batch sequencing function called `sequenceForceBatches`. This function allows anyone to sequence forced batches that have been published for a time period, specified by the public constant `forceBatchTimeout`, yet they have not been sequenced. The timeout is set to 5 days.
2121

2222
Any user can publish a batch to be forced by directly calling `forceBatch` function:
2323

@@ -38,7 +38,7 @@ In order to successfully publish forced batch to the `forcedBatches` mapping, th
3838
- The contract must not be in emergency state,
3939
- The force batches must be allowed,
4040
- The `maticAmount` argument must be higher than the MATIC fee per batch,
41-
- The length of the transactions byte array must be less than the value of `MAX_TRANSACTIONS_BYTE_LENGTH` constant (which is set at 300000).
41+
- The length of the transactions byte array must be less than the value of `MAX_TRANSACTIONS_BYTE_LENGTH` constant (which is set at 120000).
4242

4343
The forced batch is entered in `forcedBatches` mapping keyed by its force batch index.
4444

@@ -76,7 +76,7 @@ function sequenceForceBatches(
7676

7777
The `sequenceForceBatches` function is similar to the `sequenceBatches` function, but it can be called by anyone if batch forcing is enabled.
7878

79-
The `sequenceForceBatches` function determines whether each batch in the submitted sequence has been published to the `forcedBatches` mapping for a period of time greater than the `FORCE BATCH TIMEOUT`.
79+
The `sequenceForceBatches` function determines whether each batch in the submitted sequence has been published to the `forcedBatches` mapping for a period of time greater than the `forceBatchTimeout`.
8080

8181
Because the MATIC batch fee was paid at the time of publication, it will not be required to be paid again.
8282

0 commit comments

Comments
 (0)