Skip to content

Commit

Permalink
docs: update to square size 128 (#1880)
Browse files Browse the repository at this point in the history
* docs: update to square size 128

* Apply suggestions from code review

Co-authored-by: Rootul P <[email protected]>

* Apply suggestions from code review

---------

Co-authored-by: Rootul P <[email protected]>
  • Loading branch information
jcstein and rootulp authored Jan 29, 2025
1 parent 86d96d9 commit 95121b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions how-to-guides/mainnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,21 @@ as a part of the CIP process.

There is a hard limit on the total blob size in a transaction, which is
determined by the effective maximum square size. Given that the current
governance maximum square size is 64, the total blob size in a transaction
must be slightly less than ~2 MiB, or 1,973,786 bytes to be exact.
governance maximum square size is 128, the total blob size in a transaction
must be slightly less than ~8 MiB, or 7,896,602 bytes to be exact.

The following provides an approximation of the maximum block size:

- The maximum square size is 64x64, which gives us 4096 shares.
- One share is reserved for the PFB transaction, leaving us with 4095 shares.
- The maximum square size is 128x128, which gives us 16384 shares.
- One share is reserved for the PFB transaction, leaving us with 16383 shares.
- The first sparse share has 478 bytes available, and the remaining sparse
shares have 482 bytes each.

This can be calculated as follows:

<!-- markdownlint-disable MD013 -->

$\text{Total Bytes} = (1 \times 478 \, \text{bytes}) + (4094 \times 482 \, \text{bytes}) = 1,973,786 \, \text{bytes}$
$\text{Total Bytes} = (1 \times 478 \, \text{bytes}) + (16382 \times 482 \, \text{bytes}) = 7,896,602 \, \text{bytes}$

<!-- markdownlint-enable MD013 -->

Expand Down

0 comments on commit 95121b3

Please sign in to comment.