Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove from overseer
Browse files Browse the repository at this point in the history
AndreiEres committed Sep 13, 2024

Verified

This commit was signed with the committer’s verified signature.
ImgBotApp Imgbot
1 parent f838e2e commit 1b28f37
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions polkadot/node/overseer/examples/minimal-example.rs
Original file line number Diff line number Diff line change
@@ -31,8 +31,10 @@ use polkadot_overseer::{
gen::{FromOrchestra, SpawnedSubsystem},
HeadSupportsParachains, SubsystemError,
};
use polkadot_primitives::{CandidateReceipt, Hash, PvfExecKind};
use polkadot_primitives_test_helpers::{dummy_candidate_descriptor, dummy_hash};
use polkadot_primitives::{CandidateReceipt, Hash, PersistedValidationData, PvfExecKind};
use polkadot_primitives_test_helpers::{
dummy_candidate_descriptor, dummy_hash, dummy_validation_code,
};

struct AlwaysSupportsParachains;

@@ -73,7 +75,9 @@ impl Subsystem1 {
commitments_hash: Hash::zero(),
};

let msg = CandidateValidationMessage::ValidateFromChainState {
let msg = CandidateValidationMessage::ValidateFromExhaustive {
validation_data: PersistedValidationData { ..Default::default() },
validation_code: dummy_validation_code(),
candidate_receipt,
pov: PoV { block_data: BlockData(Vec::new()) }.into(),
executor_params: Default::default(),
12 changes: 8 additions & 4 deletions polkadot/node/overseer/src/tests.rs
Original file line number Diff line number Diff line change
@@ -29,10 +29,10 @@ use polkadot_node_subsystem_types::messages::{
};
use polkadot_primitives::{
CandidateHash, CandidateReceipt, CollatorPair, Id as ParaId, InvalidDisputeStatementKind,
PvfExecKind, SessionIndex, ValidDisputeStatementKind, ValidatorIndex,
PersistedValidationData, PvfExecKind, SessionIndex, ValidDisputeStatementKind, ValidatorIndex,
};
use polkadot_primitives_test_helpers::{
dummy_candidate_descriptor, dummy_candidate_receipt, dummy_hash,
dummy_candidate_descriptor, dummy_candidate_receipt, dummy_hash, dummy_validation_code,
};

use crate::{
@@ -104,7 +104,9 @@ where
};

let (tx, _) = oneshot::channel();
ctx.send_message(CandidateValidationMessage::ValidateFromChainState {
ctx.send_message(CandidateValidationMessage::ValidateFromExhaustive {
validation_data: PersistedValidationData { ..Default::default() },
validation_code: dummy_validation_code(),
candidate_receipt,
pov: PoV { block_data: BlockData(Vec::new()) }.into(),
executor_params: Default::default(),
@@ -802,7 +804,9 @@ fn test_candidate_validation_msg() -> CandidateValidationMessage {
commitments_hash: Hash::zero(),
};

CandidateValidationMessage::ValidateFromChainState {
CandidateValidationMessage::ValidateFromExhaustive {
validation_data: PersistedValidationData { ..Default::default() },
validation_code: dummy_validation_code(),
candidate_receipt,
pov,
executor_params: Default::default(),

0 comments on commit 1b28f37

Please sign in to comment.