forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
) This unifies the logic between `CallExecutor` and `Client` when it comes to fetching the `code` for a given block. The actual `code` depends on potential overrides/substitutes. Besides that it changes the logic in the lookahead collator on which `ValidationCodeHash` it sends to the validator alongside the `POV`. We are now sending the code hash as found on the relay chain. This is done as the local node could run with an override which is compatible to the validation code on the relay chain, but has a different hash.
- Loading branch information
Showing
9 changed files
with
407 additions
and
236 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
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
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,20 @@ | ||
title: Unify logic for fetching the `:code` of a block | ||
|
||
doc: | ||
- audience: Node Operator | ||
description: | | ||
Fixes an issue on parachains when running with a custom `substitute` of the on chain wasm code | ||
and having replaced the wasm code on the relay chain. The relay chain was rejecting blocks | ||
build this way, because the collator was reporting the actual on chain wasm code hash | ||
to the relay chain. However, the relay chain was expecting the code hash of the wasm code substitute | ||
that was also registered on the relay chain. | ||
- audience: Node Dev | ||
description: | | ||
`Client::code_at` will now use the same `substitute` to determine the code for a given block as it is | ||
done when executing any runtime call. | ||
|
||
crates: | ||
- name: cumulus-client-consensus-aura | ||
bump: minor | ||
- name: sc-service | ||
bump: minor |
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
Oops, something went wrong.