mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
introduce a method for fetching relay chain header to RelayChainInterface (#2794)
* introduce a method for fetching header to RelayChainInterface * cargo fmt * return Option<Header>
This commit is contained in:
@@ -19,7 +19,7 @@ use crate::*;
|
||||
use async_trait::async_trait;
|
||||
use codec::Encode;
|
||||
use cumulus_client_pov_recovery::RecoveryKind;
|
||||
use cumulus_primitives_core::{InboundDownwardMessage, InboundHrmpMessage};
|
||||
use cumulus_primitives_core::{relay_chain::BlockId, InboundDownwardMessage, InboundHrmpMessage};
|
||||
use cumulus_relay_chain_interface::{
|
||||
CommittedCandidateReceipt, OccupiedCoreAssumption, OverseerHandle, PHeader, ParaId,
|
||||
RelayChainInterface, RelayChainResult, SessionIndex, StorageValue, ValidatorId,
|
||||
@@ -207,6 +207,10 @@ impl RelayChainInterface for Relaychain {
|
||||
})
|
||||
.boxed())
|
||||
}
|
||||
|
||||
async fn header(&self, _block_id: BlockId) -> RelayChainResult<Option<PHeader>> {
|
||||
unimplemented!("Not needed for test")
|
||||
}
|
||||
}
|
||||
|
||||
fn build_block<B: InitBlockBuilder>(
|
||||
|
||||
Reference in New Issue
Block a user