Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

consensus: remove caching functionality from block import pipeline #13551

Merged
merged 4 commits into from
Mar 7, 2023

Conversation

andresilva
Copy link
Contributor

@andresilva andresilva commented Mar 6, 2023

The block-import pipeline included functionality to maintain a cache that was passed to BlockImport::import_block, additionally it was possible to add/update entries in this cache as part of the initial block verification process (i.e. trait Verifier). This functionality was previously used by the light client in order to cache data that was fetched from the runtime (since the light client cannot execute the runtime fetching this data requires network requests), namely the current authorities. Substrate no longer provides a light client and therefore this is now completely unused. This PR removes this caching functionality. It is still possible to pass data along the block-import pipeline (e.g. from verifier to block import) through the use of intermediates (in BlockImportParams).

cumulus companion: paritytech/cumulus#2278

@andresilva andresilva added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Mar 6, 2023
@andresilva andresilva requested a review from a team March 6, 2023 18:16
@andresilva andresilva requested a review from sorpaas as a code owner March 6, 2023 18:16
@paritytech paritytech deleted a comment from paritytech-cicd-pr Mar 6, 2023
andresilva added a commit to paritytech/cumulus that referenced this pull request Mar 6, 2023
@andresilva
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Error: "Check reviews" status is not passing for paritytech/cumulus#2278

@andresilva
Copy link
Contributor Author

Need another approval on the cumulus companion.

@koute
Copy link
Contributor

koute commented Mar 7, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 8a4746e into master Mar 7, 2023
@paritytech-processbot paritytech-processbot bot deleted the andre/cleanup-block-import-verifier branch March 7, 2023 11:19
paritytech-processbot bot pushed a commit to paritytech/cumulus that referenced this pull request Mar 7, 2023
* Companion for paritytech/substrate#13551

* update lockfile for {"substrate", "polkadot"}

---------

Co-authored-by: parity-processbot <>
@nazar-pc nazar-pc mentioned this pull request Apr 2, 2023
1 task
ukint-vs pushed a commit to gear-tech/substrate that referenced this pull request Apr 10, 2023
…aritytech#13551)

* consensus: remove caching functionality from block import pipeline

* client: update docs on Verifier::verify

* node: fix block production benchmark
ggwpez pushed a commit to ggwpez/runtimes that referenced this pull request Jul 13, 2023
* Companion for paritytech/substrate#13551

* update lockfile for {"substrate", "polkadot"}

---------

Co-authored-by: parity-processbot <>
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
…aritytech#13551)

* consensus: remove caching functionality from block import pipeline

* client: update docs on Verifier::verify

* node: fix block production benchmark
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants