Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
2f5eeea3
Unverified
Commit
2f5eeea3
authored
Oct 24, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specs: disallow empty span-batches
parent
a029c870
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
span-batches.md
specs/span-batches.md
+2
-1
No files found.
specs/span-batches.md
View file @
2f5eeea3
...
@@ -94,7 +94,7 @@ Where:
...
@@ -94,7 +94,7 @@ Where:
-
`l1_origin_check`
: the block hash of the last L1 origin is referenced.
-
`l1_origin_check`
: the block hash of the last L1 origin is referenced.
The hash is truncated to 20 bytes for efficiency, i.e.
`span_end.l1_origin.hash[:20]`
.
The hash is truncated to 20 bytes for efficiency, i.e.
`span_end.l1_origin.hash[:20]`
.
-
`payload = block_count ++ origin_bits ++ block_tx_counts ++ txs`
:
-
`payload = block_count ++ origin_bits ++ block_tx_counts ++ txs`
:
-
`block_count`
:
`uvarint`
number of L2 blocks.
-
`block_count`
:
`uvarint`
number of L2 blocks.
This is at least 1, empty span batches are invalid.
-
`origin_bits`
: bitlist of
`block_count`
bits, right-padded to a multiple of 8 bits:
-
`origin_bits`
: bitlist of
`block_count`
bits, right-padded to a multiple of 8 bits:
1 bit per L2 block, indicating if the L1 origin changed this L2 block.
1 bit per L2 block, indicating if the L1 origin changed this L2 block.
-
`block_tx_counts`
: for each block, a
`uvarint`
of
`len(block.transactions)`
.
-
`block_tx_counts`
: for each block, a
`uvarint`
of
`len(block.transactions)`
.
...
@@ -130,6 +130,7 @@ Where:
...
@@ -130,6 +130,7 @@ Where:
-
`prefix = rel_timestamp ++ l1_origin_num ++ parent_check ++ l1_origin_check`
:
-
`prefix = rel_timestamp ++ l1_origin_num ++ parent_check ++ l1_origin_check`
:
-
Identical to
`batch_version`
1
-
Identical to
`batch_version`
1
-
`payload = block_count ++ origin_bits ++ block_tx_counts ++ txs ++ fee_recipients`
:
-
`payload = block_count ++ origin_bits ++ block_tx_counts ++ txs ++ fee_recipients`
:
-
An empty span-batch, i.e. with
`block_count == 0`
, is invalid and must not be processed.
-
Every field definition identical to
`batch_version`
1 except that
`fee_recipients`
is
-
Every field definition identical to
`batch_version`
1 except that
`fee_recipients`
is
added to support more decentralized sequencing.
added to support more decentralized sequencing.
-
`fee_recipients = fee_recipients_idxs + fee_recipients_set`
-
`fee_recipients = fee_recipients_idxs + fee_recipients_set`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment