-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade to markdownlint v0.39.0 #3200
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,12 +49,12 @@ To recap, the `SubtreeRootThreshold` determines the index of where a blob must s | |
|
||
For example, assume `SubtreeRootThreshold = 64`. This would mean that the blobs smaller than the `64` can start at an index that is a multiple of one and therefore introduce zero padding. Blobs that are larger than `64` but smaller than `64 * 2 = 128` can use an index that is a multiple of 2 to get a maximum of 1 padding share. Blobs that are larger than `64 * 2 = 128` but smaller than `64 * 4 = 256` can use an index that is a multiple of 4 to get a maximum of 3 padding shares and so on. | ||
|
||
Blob size (in number of shares) | Subtree root width[^2] | Index in square | Worst case padding | ||
--------------------------------|------------------------|-----------------|------------------- | ||
blob <= 64 | 1 | multiple of 1 | 0 | ||
64 < blob <= 128 | 2 | multiple of 2 | 1 | ||
128 < blob <= 256 | 4 | multiple of 4 | 3 | ||
256 < blob <= 512 | 8 | multiple of 8 | 7 | ||
| Blob size (in number of shares) | Subtree root width[^2] | Index in square | Worst case padding | | ||
|---------------------------------|------------------------|-----------------|--------------------| | ||
| blob <= 64 | 1 | multiple of 1 | 0 | | ||
| 64 < blob <= 128 | 2 | multiple of 2 | 1 | | ||
| 128 < blob <= 256 | 4 | multiple of 4 | 3 | | ||
| 256 < blob <= 512 | 8 | multiple of 8 | 7 | | ||
|
||
Note: the threshold doesn't need to be `64` and the implementation versions this constant so that it is possible to modify over time. | ||
|
||
Comment on lines
49
to
60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Consider adding a comma before "but" when it connects two independent clauses, unless they are closely connected and short. - This is a good improvement but we can reduce padding further.
+ This is a good improvement, but we can reduce padding further.
Use a hyphen in compound adjectives before nouns. Here, "worst-case padding" should be hyphenated. - analyze the worst case padding for different blob sizes
+ analyze the worst-case padding for different blob sizes
Add a comma after introductory phrases for clarity. - In the naive approach if the block proposer aligned blobs one after another
+ In the naive approach, if the block proposer aligned blobs one after another
Consider adding a comma before "but" when it connects two independent clauses. - have the lowest ratio of data to padding but also have small blob inclusion proofs.
+ have the lowest ratio of data to padding, but also have small blob inclusion proofs.
Add a comma after introductory phrases for clarity. - From now on this threshold is called the `SubtreeRootThreshold`
+ From now on, this threshold is called the `SubtreeRootThreshold`
This sentence should start with an uppercase letter. - where `blob` is the length of the blob in shares
+ Where `blob` is the length of the blob in shares
Add a comma after introductory phrases for clarity. - If light nodes can process this proof size without a problem then we can use this bound.
+ If light nodes can process this proof size without a problem, then we can use this bound.
Use a hyphen in compound adjectives before nouns. Here, "worst-case padding" should be hyphenated. - In the current worst case a Celestia block is full of blobs of size 1
+ In the current worst-case a Celestia block is full of blobs of size 1
Use a hyphen in compound adjectives before nouns. Here, "worst-case padding" should be hyphenated. - ### Worst Case Padding
+ ### Worst-Case Padding |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,8 +119,8 @@ Q: What is the skew between `BlocksPerYear` on popular Cosmos SDK chains and the | |
|
||
Cosmos Hub (a.k.a Gaia) sets `BlocksPerYear` to 4,360,000 [here](https://github.com/cosmos/gaia/blob/8a522e98a2863205cf02fb97f8ad27d091670b9d/docs/governance/current-parameters.json#L86). Cosmos Hub has a block time 6.353 ms. Numia data doesn't have complete data for 2021 so we'll examine 2022: | ||
|
||
Year | BlocksPerYear | Actual # of Blocks | Skew | ||
-----|---------------|--------------------|------ | ||
2022 | 4,360,000 | 4,580,463 | 5.05% | ||
| Year | BlocksPerYear | Actual # of Blocks | Skew | | ||
|------|---------------|--------------------|-------| | ||
| 2022 | 4,360,000 | 4,580,463 | 5.05% | | ||
|
||
Source: [Numia query](https://console.cloud.google.com/bigquery?sq=611612269782:f0c42f9584c448c78a4ec5f118c2091c) | ||
Comment on lines
119
to
126
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The verb "trigger" should agree with its subject, suggesting a revision to "triggers". For example: "...when a validator or delegator triggers a withdrawal..." - At some point in the future when a validator or delegator trigger a withdrawal, tokens are withdrawn from...
+ At some point in the future when a validator or delegator triggers a withdrawal, tokens are withdrawn from... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The table formatting changes improve readability and consistency. However, consider adding a header row to enhance clarity further.
+ | Blob size range | Subtree root width | Index multiple | Worst-case padding | |---------------------------------|------------------------|-----------------|--------------------| | blob <= 64 | 1 | multiple of 1 | 0 | | 64 < blob <= 128 | 2 | multiple of 2 | 1 | | 128 < blob <= 256 | 4 | multiple of 4 | 3 | | 256 < blob <= 512 | 8 | multiple of 8 | 7 |
Committable suggestion