paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.39k stars 2.65k forks source link

Make triecache generic and work for no-std environments #14403

Closed skunert closed 1 year ago

skunert commented 1 year ago

This pull request refactors the trie-cache related traits and makes the system generic. Until now the caching system was bound to the LocalTrieCache implementation. This is one step towards enabling the TrieCache in validate_block https://github.com/paritytech/cumulus/issues/2432.

This refactoring contains no behavioural changes for existing code.

Change summary:

Polkadot companion: https://github.com/paritytech/polkadot/pull/7435

skunert commented 1 year ago

bot fmt

command-bot[bot] commented 1 year ago

@skunert https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3028934 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/substrate/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 5-d8d9329e-2ccf-47cc-b29a-cdd20dcc2fd0 to cancel this command or bot cancel to cancel all commands in this pull request.

command-bot[bot] commented 1 year ago

@skunert Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3028934 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3028934/artifacts/download.

skunert commented 1 year ago

bot merge