Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
4ad02707
Commit
4ad02707
authored
4 years ago
by
Sebastian Thiel
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Change spelling of 'PoVBlocks' to be consistent with other polkadot docs (#373)
parent
9df91c78
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cumulus/docs/overview.md
+6
-6
6 additions, 6 deletions
cumulus/docs/overview.md
with
6 additions
and
6 deletions
cumulus/docs/overview.md
+
6
−
6
View file @
4ad02707
...
...
@@ -23,12 +23,12 @@ When compiling a runtime that uses Cumulus, a WASM binary is generated that cont
of the Parachain runtime plus the
`validate_block`
functionality. This binary is required to
register a Parachain on the relay chain.
When the Parachain validator calls the
`validate_block`
function, it passes the Po
v
Block (See
[
Block
When the Parachain validator calls the
`validate_block`
function, it passes the Po
V
Block (See
[
Block
building
](
#block-building
)
for more information) and the parent header of the Parachain that is
stored on the relay chain. From the Po
v
Block witness data, Cumulus reconstructs the partial trie.
stored on the relay chain. From the Po
V
Block witness data, Cumulus reconstructs the partial trie.
This partial trie is used as storage while executing the block. Cumulus also redirects all storage
related host functions to use the witness data storage. After the setup is done, Cumulus calls
`execute_block`
with the transactions and the header stored in the Po
v
Block. On success, the new
`execute_block`
with the transactions and the header stored in the Po
V
Block. On success, the new
Parachain header is returned as part of the
`validate_block`
result.
## Node
...
...
@@ -60,14 +60,14 @@ consensus and the block production logic.
## Block Building
Polkadot requires that a Parachain block is transmitted in a fixed format. These blocks sent by a
Parachain to the Parachain validators are called proof-of-validity blocks (Po
v
Block). Such a
Po
v
Block contains the header and the transactions of the Parachain as opaque blobs (
`Vec<u8>`
). They
Parachain to the Parachain validators are called proof-of-validity blocks (Po
V
Block). Such a
Po
V
Block contains the header and the transactions of the Parachain as opaque blobs (
`Vec<u8>`
). They
are opaque, because Polkadot can not and should not support all kinds of possible Parachain block
formats. Besides the header and the transactions, it also contains the witness data and the outgoing
messages.
A Parachain validator needs to validate a given PoVBlock, but without requiring the full state of
the Parachain. To still make it possible to validate the Parachain block, the Po
v
Block contains the
the Parachain. To still make it possible to validate the Parachain block, the Po
V
Block contains the
witness data. The witness data is a proof that is collected while building the block. The proof will
contain all trie nodes that are read during the block production. Cumulus uses the witness data to
reconstruct a partial trie and uses this a storage when executing the block.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment