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: specs/src/specs/resource_pricing.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,6 @@ usage.
151
151
| auth/sig_verify_cost_secp256k1 | 1000 | Gas used per verifying a secp256k1 signature |
152
152
| blob/gas_per_blob_byte | 8 | Gas used per byte used by blob. Note that this value is applied to all encoding overhead, meaning things like the padding of the remaining share and namespace. See PFB gas estimation section for more details. |
153
153
154
-
155
154
## Gas Limit
156
155
157
156
The gas limit must be included in each transaction. If the transaction exceeds
@@ -173,7 +172,7 @@ By default, Celestia consensus nodes will use mempools that prioritize fees,
173
172
however mempool usage cannot be enforced at the protocol level. There is
174
173
currently no enforced minimum fee, this value is set by each consensus node in
175
174
their `app.toml`. Transactions that do not exceed that given gas price will not
176
-
be able to enter the that node's mempool, and thus they will also not be
175
+
be able to enter that node's mempool, and thus they will also not be
177
176
gossiped by that node.
178
177
179
178
## Estimating PFB cost
@@ -196,9 +195,10 @@ access to accounts), which has a default value of 65,000.
196
195
197
196
Each blob in the PFB contributes to the total gas cost based on its size. The
198
197
function `GasToConsume` calculates the total gas consumed by all the blobs
199
-
involved in a PFB, where each blob's gas cost is computed by multiplying the
200
-
blob size (in bytes) by the `gasPerByte` parameter, along with adding a static
201
-
amount per blob.
198
+
involved in a PFB, where each blob's gas cost is computed by first determining
199
+
how many shares are needed to store the blob size. Then, it computes the product
200
+
of the number of shares, the number of bytes per share, and the `gasPerByte`
201
+
parameter. Finally, it adds a static amount per blob.
202
202
203
203
The gas cost per blob byte and gas cost per transaction byte are parameters that
204
204
could potentially be adjusted through the system's governance mechanisms. Hence,
@@ -207,7 +207,7 @@ actual costs may vary depending on the current settings of these parameters.
207
207
## Tracing Gas Consumption
208
208
209
209
This figure plots each instance of the gas meter being incremented as a colored
210
-
dot over the execution lifecycle of a given transaction. The y-axis in units of
210
+
dot over the execution lifecycle of a given transaction. The y-axis is units of
211
211
gas and the x-axis is cumulative gas consumption. The legend shows which color
212
212
indicates what the cause of the gas consumption was.
0 commit comments