Files
pezkuwi-subxt/cumulus/test/client/Cargo.toml
T
Sebastian Kunert 3386377b0f PoV Reclaim Runtime Side (#3002)
# Runtime side for PoV Reclaim

## Implementation Overview
- Hostfunction to fetch the storage proof size has been added to the
PVF. It uses the size tracking recorder that was introduced in my
previous PR.
- Mechanisms to use the reclaim HostFunction have been introduced.
- 1. A SignedExtension that checks the node-reported proof size before
and after application of an extrinsic. Then it reclaims the difference.
- 2. A manual helper to make reclaiming easier when manual interaction
is required, for example in `on_idle` or other hooks.
- In order to utilize the manual reclaiming, I modified `WeightMeter` to
support the reduction of consumed weight, at least for storage proof
size.

## How to use
To enable the general functionality for a parachain:
1. Add the SignedExtension to your parachain runtime. 
2. Provide the HostFunction to the node
3. Enable proof recording during block import

## TODO
- [x] PRDoc

---------

Co-authored-by: Dmitry Markin <dmitry@markin.tech>
Co-authored-by: Davide Galassi <davxy@datawok.net>
Co-authored-by: Bastian Köcher <git@kchr.de>
2024-02-23 14:09:49 +00:00

57 lines
2.4 KiB
TOML

[package]
name = "cumulus-test-client"
version = "0.1.0"
authors.workspace = true
edition.workspace = true
publish = false
[lints]
workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
# Substrate
sc-service = { path = "../../../substrate/client/service" }
sc-consensus = { path = "../../../substrate/client/consensus/common" }
sc-block-builder = { path = "../../../substrate/client/block-builder" }
sc-executor = { path = "../../../substrate/client/executor" }
sc-executor-common = { path = "../../../substrate/client/executor/common" }
substrate-test-client = { path = "../../../substrate/test-utils/client" }
sp-runtime = { path = "../../../substrate/primitives/runtime" }
sp-core = { path = "../../../substrate/primitives/core" }
sp-api = { path = "../../../substrate/primitives/api" }
sp-keyring = { path = "../../../substrate/primitives/keyring" }
sp-blockchain = { path = "../../../substrate/primitives/blockchain" }
sp-inherents = { path = "../../../substrate/primitives/inherents" }
sp-io = { path = "../../../substrate/primitives/io" }
sp-timestamp = { path = "../../../substrate/primitives/timestamp" }
frame-system = { path = "../../../substrate/frame/system" }
pallet-transaction-payment = { path = "../../../substrate/frame/transaction-payment" }
pallet-balances = { path = "../../../substrate/frame/balances" }
# Polkadot
polkadot-primitives = { path = "../../../polkadot/primitives" }
polkadot-parachain-primitives = { path = "../../../polkadot/parachain" }
# Cumulus
cumulus-test-runtime = { path = "../runtime" }
cumulus-test-service = { path = "../service" }
cumulus-test-relay-sproof-builder = { path = "../relay-sproof-builder" }
cumulus-primitives-core = { path = "../../primitives/core" }
cumulus-primitives-proof-size-hostfunction = { path = "../../primitives/proof-size-hostfunction" }
cumulus-primitives-parachain-inherent = { path = "../../primitives/parachain-inherent" }
cumulus-primitives-storage-weight-reclaim = { path = "../../primitives/storage-weight-reclaim" }
[features]
runtime-benchmarks = [
"cumulus-primitives-core/runtime-benchmarks",
"cumulus-test-service/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"polkadot-parachain-primitives/runtime-benchmarks",
"polkadot-primitives/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]