Skip to content

Commit a1c1dc2

Browse files
evan-forbesrach-idrootulp
authored
Apply suggestions from code review
Co-authored-by: CHAMI Rachid <[email protected]> Co-authored-by: Rootul P <[email protected]>
1 parent 2a4ef9c commit a1c1dc2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

specs/src/specs/resource_pricing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ usage.
151151
| auth/sig_verify_cost_secp256k1 | 1000 | Gas used per verifying a secp256k1 signature |
152152
| 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. |
153153

154-
155154
## Gas Limit
156155

157156
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,
173172
however mempool usage cannot be enforced at the protocol level. There is
174173
currently no enforced minimum fee, this value is set by each consensus node in
175174
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
177176
gossiped by that node.
178177

179178
## Estimating PFB cost
@@ -196,9 +195,10 @@ access to accounts), which has a default value of 65,000.
196195
197196
Each blob in the PFB contributes to the total gas cost based on its size. The
198197
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.
202202

203203
The gas cost per blob byte and gas cost per transaction byte are parameters that
204204
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.
207207
## Tracing Gas Consumption
208208

209209
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
211211
gas and the x-axis is cumulative gas consumption. The legend shows which color
212212
indicates what the cause of the gas consumption was.
213213

0 commit comments

Comments
 (0)