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
f2bc0a79
Unverified
Commit
f2bc0a79
authored
Jul 19, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specs: span-batches spec - fix lint and add explicit check of L1 origin of span-batch
parent
9b4b5c83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
span-batches.md
specs/span-batches.md
+7
-3
No files found.
specs/span-batches.md
View file @
f2bc0a79
...
...
@@ -150,9 +150,13 @@ Span-batch rules, in validation order:
-
Rules:
-
`start_epoch_num + sequence_window_size < inclusion_block_number`
->
`drop`
:
i.e. the batch must be included timely.
-
`start_epoch_num > epoch.number + 1`
->
`future`
: i.e. the L1 origin may jump to the next L1 block, but not further.
-
`end_epoch_num == epoch.number`
:
-
If
`batch.l1_origin_check != epoch.hash[:20]`
->
`drop`
: verify the batch is intended for this L1 chain.
-
`start_epoch_num > epoch.number + 1`
->
`future`
:
i.e. the L1 origin may jump to the next L1 block, but not further.
-
If
`end_epoch_num >= inclusion_block_number`
->
`drop`
:
if the end of the span is past the L1 block it was included in,
it cannot possibly reference the chain it was included in, and is thus non-canonical.
-
If
`batch.l1_origin_check`
does not match the canonical L1 chain at
`end_epoch_num`
->
`drop`
:
verify the batch is intended for this L1 chain.
-
`start_epoch_num < epoch.number`
->
`drop`
: must have been duplicate batch,
we may be past this L1 block in the safe L2 chain. If a span-batch overlaps with older information,
it is dropped, since partially valid span-batches are not accepted.
...
...
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