Crates.io | polkadot-node-core-pvf |
lib.rs | polkadot-node-core-pvf |
version | 18.0.0 |
source | src |
created_at | 2022-11-21 10:30:56.044964 |
updated_at | 2024-10-01 11:15:42.709921 |
description | Polkadot crate that implements the PVF validation host. Responsible for coordinating preparation and execution of PVFs. |
homepage | |
repository | |
max_upload_size | |
id | 719937 |
size | 270,080 |
This is the PVF host, responsible for responding to requests from Candidate Validation and spawning worker tasks to fulfill those requests.
See also:
Running cargo test
in the pvf/
directory will run unit and integration
tests.
Note: some tests run only under Linux, x86-64, and/or with the
ci-only-tests
feature enabled.
See the general Testing instructions for more information on running tests and observing logs.
Since this crate is consensus-critical, for major changes it is highly recommended to run a test-network. See the "Behavior tests" section of the Testing docs for full instructions.
To run the PVF-specific zombienet test:
RUST_LOG=parachain::pvf=trace zombienet --provider=native spawn zombienet_tests/functional/0001-parachains-pvf.toml
Some of the PVF functionality, especially related to security, is Linux-only, and some is x86-64-only. If you touch anything security-related, make sure to test on Linux x86-64! If you're on a Mac, you can either run a VM or you can hire a VPS and use the open-source tool EternalTerminal to connect to it.1
Polkadot SDK stable2409
Unlike ssh, ET preserves your session across disconnects, and unlike another popular persistent shell, mosh, it allows scrollback. ↩