You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/zkEVM/architecture/effective-gas/zkevm-egp-strat.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ This document presents an outline of Polygon zkEVM's strategy for executing tran
15
15
16
16
A grace time interval of 5 minutes, called $\texttt{MinAllowedPriceInterval}$, is given to the user.
17
17
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.
19
19
20
20
21
21
-**Pre-execute transactions at the RPC level**
@@ -26,19 +26,19 @@ This document presents an outline of Polygon zkEVM's strategy for executing tran
26
26
27
27
(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.
28
28
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.
30
30
31
31
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**
33
33
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.
35
35
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.
37
37
38
38
39
39
-**Establish a criterion for when to execute transactions with user's signed gas price**
40
40
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.
42
42
43
43
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.
44
44
@@ -59,6 +59,6 @@ This document presents an outline of Polygon zkEVM's strategy for executing tran
59
59
60
60
-**Enhancing prioritization of transactions**
61
61
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.
0 commit comments