mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 01:27:56 +00:00
pvf-precheck: hook up runtime API (#4542)
This commit hooks up the API provided by #4457 to the runtime API subsystem. In a following PR this API will be consumed by the PVF pre-checking subsystem. Co-authored-by: Chris Sosnin <chris125_@live.com> Co-authored-by: Chris Sosnin <chris125_@live.com>
This commit is contained in:
@@ -873,6 +873,17 @@ sp_api::impl_runtime_apis! {
|
||||
fn on_chain_votes() -> Option<ScrapedOnChainVotes<Hash>> {
|
||||
runtime_impl::on_chain_votes::<Runtime>()
|
||||
}
|
||||
|
||||
fn submit_pvf_check_statement(
|
||||
stmt: primitives::v1::PvfCheckStatement,
|
||||
signature: primitives::v1::ValidatorSignature,
|
||||
) {
|
||||
runtime_impl::submit_pvf_check_statement::<Runtime>(stmt, signature)
|
||||
}
|
||||
|
||||
fn pvfs_require_precheck() -> Vec<ValidationCodeHash> {
|
||||
runtime_impl::pvfs_require_precheck::<Runtime>()
|
||||
}
|
||||
}
|
||||
|
||||
impl beefy_primitives::BeefyApi<Block> for Runtime {
|
||||
|
||||
Reference in New Issue
Block a user