Skip to content

Commit

Permalink
Prepare PVFs if node is a validator in the next session (#4791)
Browse files Browse the repository at this point in the history
Closes #4324
- On every active leaf candidate-validation subsystem checks if the node
is the next session authority.
- If it is, it fetches backed candidates and prepares unknown PVFs.
- We limit number of PVFs per block to not overload subsystem.
  • Loading branch information
AndreiEres committed Aug 5, 2024
1 parent 743dc63 commit 1cf6180
Show file tree
Hide file tree
Showing 12 changed files with 1,188 additions and 29 deletions.
8 changes: 8 additions & 0 deletions .gitlab/pipeline/zombienet/polkadot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,14 @@ zombienet-polkadot-smoke-0004-coretime-smoke-test:
--local-dir="${LOCAL_DIR}/smoke"
--test="0004-coretime-smoke-test.zndsl"

zombienet-polkadot-smoke-0005-precompile-pvf-smoke:
extends:
- .zombienet-polkadot-common
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
--local-dir="${LOCAL_DIR}/smoke"
--test="0005-precompile-pvf-smoke.zndsl"

zombienet-polkadot-misc-0001-parachains-paritydb:
extends:
- .zombienet-polkadot-common
Expand Down
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions polkadot/node/core/candidate-validation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ workspace = true
async-trait = { workspace = true }
futures = { workspace = true }
futures-timer = { workspace = true }
sp-keystore = { workspace = true }
sp-application-crypto = { workspace = true }
gum.workspace = true
gum.default-features = true
sp-maybe-compressed-blob.workspace = true
Expand Down
Loading

0 comments on commit 1cf6180

Please sign in to comment.