|
26 | 26 | async_trait::async_trait, |
27 | 27 | cumulus_client_collator::service::CollatorService, |
28 | 28 | cumulus_client_consensus_proposer::Proposer as ConsensusProposer, |
29 | | - cumulus_primitives_core::{relay_chain::BlockId, CollationInfo, CollectCollationInfo, ParaId}, |
| 29 | + cumulus_primitives_core::{ |
| 30 | + relay_chain::{BlockId, BlockNumber, CoreState}, |
| 31 | + CollationInfo, CollectCollationInfo, ParaId, |
| 32 | + }, |
30 | 33 | cumulus_relay_chain_interface::{ |
31 | 34 | CommittedCandidateReceipt, OverseerHandle, RelayChainInterface, RelayChainResult, |
32 | 35 | StorageValue, |
|
64 | 67 | Digest, DigestItem, |
65 | 68 | }, |
66 | 69 | sp_timestamp::Timestamp, |
| 70 | + sp_version::RuntimeVersion, |
67 | 71 | std::{ |
68 | 72 | collections::{BTreeMap, BTreeSet}, |
69 | 73 | pin::Pin, |
@@ -259,6 +263,25 @@ impl RelayChainInterface for RelayChain { |
259 | 263 | ) -> RelayChainResult<Option<polkadot_primitives::ValidationCodeHash>> { |
260 | 264 | unimplemented!("Not needed for test") |
261 | 265 | } |
| 266 | + |
| 267 | + async fn candidates_pending_availability( |
| 268 | + &self, |
| 269 | + _: PHash, |
| 270 | + _: ParaId, |
| 271 | + ) -> RelayChainResult<Vec<CommittedCandidateReceipt>> { |
| 272 | + unimplemented!("Not needed for test") |
| 273 | + } |
| 274 | + |
| 275 | + async fn availability_cores( |
| 276 | + &self, |
| 277 | + _relay_parent: PHash, |
| 278 | + ) -> RelayChainResult<Vec<CoreState<PHash, BlockNumber>>> { |
| 279 | + unimplemented!("Not needed for test"); |
| 280 | + } |
| 281 | + |
| 282 | + async fn version(&self, _: PHash) -> RelayChainResult<RuntimeVersion> { |
| 283 | + unimplemented!("Not needed for test") |
| 284 | + } |
262 | 285 | } |
263 | 286 |
|
264 | 287 | #[derive(Clone)] |
@@ -303,7 +326,7 @@ impl SealExtractorVerfier { |
303 | 326 | #[async_trait::async_trait] |
304 | 327 | impl<B: BlockT> sc_consensus::Verifier<B> for SealExtractorVerfier { |
305 | 328 | async fn verify( |
306 | | - &mut self, |
| 329 | + &self, |
307 | 330 | mut block: sc_consensus::BlockImportParams<B>, |
308 | 331 | ) -> Result<sc_consensus::BlockImportParams<B>, String> { |
309 | 332 | if block.fork_choice.is_none() { |
|
0 commit comments