mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 14:17:56 +00:00
59b4d6511f
* Implement PVF validation host * WIP: Diener * Increase the alloted compilation time * Add more comments * Minor clean up * Apply suggestions from code review Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Fix pruning artifact removal * Fix formatting and newlines * Fix the thread pool * Update node/core/pvf/src/executor_intf.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Remove redundant test declaration * Don't convert the path into an intermediate string * Try to workaround the test failure * Use the puppet_worker trick again * Fix a blip * Move `ensure_wasmtime_version` under the tests mod * Add a macro for puppet_workers * fix build for not real-overseer * Rename the puppet worker for adder collator * play it safe with the name of adder puppet worker * Typo: triggered * Add more comments * Do not kill exec worker on every error * Plumb Duration for timeouts * typo: critical * Add proofs * Clean unused imports * Revert "WIP: Diener" This reverts commit b9f54e513366c7a6dfdd117ac19fbdc46b900b4d. * Sync version of wasmtime * Update cargo.lock * Update Substrate * Merge fixes still * Update wasmtime version in test * bastifmt Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Squash spaces * Trailing new line for testing.rs * Remove controversial code * comment about biasing * Fix suggestion * Add comments * make it more clear why unwrap_err * tmpfile retry * proper proofs for claim_idle * Remove mutex from ValidationHost * Add some more logging * Extract exec timeout into a constant * Add some clarifying logging * Use blake2_256 * Clean up the merge Specifically the leftovers after removing real-overseer * Update parachain/test-parachains/adder/collator/Cargo.toml Co-authored-by: Andronik Ordian <write@reusable.software> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Andronik Ordian <write@reusable.software>
54 lines
2.3 KiB
TOML
54 lines
2.3 KiB
TOML
[package]
|
|
name = "polkadot-node-core-pvf"
|
|
version = "0.1.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
|
|
[[bin]]
|
|
name = "puppet_worker"
|
|
path = "bin/puppet_worker.rs"
|
|
|
|
[dependencies]
|
|
always-assert = "0.1"
|
|
async-std = { version = "1.8.0", features = ["attributes"] }
|
|
async-process = "1.0.1"
|
|
assert_matches = "1.4.0"
|
|
futures = "0.3.12"
|
|
futures-timer = "3.0.2"
|
|
libc = "0.2.81"
|
|
slotmap = "1.0"
|
|
tracing = "0.1.22"
|
|
pin-project = "1.0.4"
|
|
rand = "0.8.3"
|
|
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["derive"] }
|
|
polkadot-parachain = { path = "../../../parachain" }
|
|
polkadot-core-primitives = { path = "../../../core-primitives" }
|
|
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sc-executor-wasmtime = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sc-executor-common = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-externalities = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-wasm-interface = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
|
|
[dev-dependencies]
|
|
adder = { package = "test-parachain-adder", path = "../../../parachain/test-parachains/adder" }
|
|
halt = { package = "test-parachain-halt", path = "../../../parachain/test-parachains/halt" }
|
|
hex-literal = "0.3.1"
|
|
tempfile = "3.2.0"
|
|
|
|
# PVF execution leverages compiled artifacts provided by wasmtime. The contents of the artifacts
|
|
# depends on the version of wasmtime. In this crate we persist the artifacts on disk so we should
|
|
# be careful about the updates. In order to handle this, we depend on the wasmtime version here
|
|
# that we think is used by the sc-executor. If wasmtime is updated in Substrate and wasn't updated
|
|
# here then there will be linking errors like
|
|
#
|
|
# `multiple definitions of `set_vmctx_memory`.
|
|
#
|
|
# or similar, because wasmtime exports these symbols and does not support multiple versions compiled
|
|
# in at the same time.
|
|
#
|
|
# Another safeguard is a test `ensure_wasmtime_version` that will fail on each bump and prompt the
|
|
# developer to correspondingly act upon the change.
|
|
wasmtime-jit = "0.24"
|