forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync: Remove checking of the extrinsics root (paritytech#5686)
With the introduction of `system_version` in paritytech#4257 the extrinsic root may also use the `V1` layout. At this point in the sync code it would require some special handling to find out the `system_version`. So, this pull request is removing it. The extrinsics root is checked when executing the block later, so that at least no invalid block gets imported.
- Loading branch information
Showing
2 changed files
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
title: "sync: Remove checking of the extrinsics root" | ||
|
||
doc: | ||
- audience: Node Dev | ||
description: | | ||
Remove checking the extrinsics root as part of the sync code. | ||
With the introduction of `system_version` and the possibility to use the `V1` | ||
layout for the trie when calculating the extrinsics root, it would require the | ||
sync code to fetch the runtime version first before knowing which layout to use | ||
when building the extrinsic root. | ||
The extrinsics root is still checked when executing a block on chain. | ||
|
||
crates: | ||
- name: sc-network-sync | ||
bump: patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters