Skip to content

Commit 52e4ba5

Browse files
EmpieichOhsutaiyu
andauthored
Apply suggestions from code review
Co-authored-by: hsutaiyu <51791408+hsutaiyu@users.noreply.github.com>
1 parent f96c2f3 commit 52e4ba5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/zkEVM/architecture/effective-gas/zkevm-egp-strat.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This document presents an outline of Polygon zkEVM's strategy for executing tran
1515

1616
A grace time interval of 5 minutes, called $\texttt{MinAllowedPriceInterval}$, is given to the user.
1717

18-
It is recommended that the user sign their transactions with a gas price that is greater than the least of the gas prices in the 5-minute interval, otherwise is rejected for the RPC pre-execution stage.
18+
It is recommended that the user sign their transactions with a gas price *greater than the lowest* of the gas prices fetched within the 5-minute interval. Otherwise, the transaction is rejected at the RPC pre-execution stage.
1919

2020

2121
- **Pre-execute transactions at the RPC level**
@@ -26,19 +26,19 @@ This document presents an outline of Polygon zkEVM's strategy for executing tran
2626

2727
(b) Checking user’s signed gas price against the expected $\texttt{MinL2GasPrice}$. Store the transaction in the pool if $\texttt{SignedGasPrice} < \texttt{MinL2GasPrice}$​. Otherwise discard it.
2828

29-
(c\) The Pool here refers to a collection of transactions waiting to be selected for execution by the sequencer.
29+
(c) The pool here refers to a collection of transactions waiting to be selected for execution by the sequencer.
3030

3131

32-
- **Put in place a criterion for determining which transactions to store in the Pool**
32+
- **Put in place a criterion for determining which transactions to store in the pool**
3333

34-
Not all transactions qualify to be stored in the Pool, but only those that satisfy this criterion.
34+
Only the transactions that satisfy the criterion are stored on the pool.
3535

36-
The user's signed gas price is checked against either some breakeven factor or the gas price suggested to the user.
36+
The user's signed gas price is checked against either the breakeven factor, or the gas price suggested to the user.
3737

3838

3939
- **Establish a criterion for when to execute transactions with user's signed gas price**
4040

41-
Some users' signed gas prices may be sufficiently high for the user to deserve some savings. In such cases the sequencer can execute transactions with a much lower gas price.
41+
Some users' signed gas prices may be significantly higher than the effective gas price. In such cases, the sequencer can execute transactions with a much lower gas price to help save gas fees.
4242

4343
Hence, there's a need for a criterion that determines whether a transaction gets executed with the user's signed gas price, or the effective gas price as per the RPC estimation.
4444

@@ -59,6 +59,6 @@ This document presents an outline of Polygon zkEVM's strategy for executing tran
5959

6060
- **Enhancing prioritization of transactions**
6161

62-
Since transactions are sequenced according to the value they carry, with high preference given to large values, users need to provision sufficient gas price to allow for prioritization of transactions according to their needs.
62+
Since transactions are sequenced in decreasing order of the specified gas price, with higher preference given to large values, users need to provision sufficient gas price to allow for prioritization of transactions according to their needs.
6363

6464
![Figure: Pre-excution scheme](../../../img/zkEVM/rpc-tx-preexec.png)

0 commit comments

Comments
 (0)