mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
Rialto -> Millau headers relay (#477)
* Rialto -> Millau headers relay * removed more constraints * removed file from other PR * Update primitives/rialto/src/lib.rs Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
This commit is contained in:
committed by
Bastian Köcher
parent
b027c81266
commit
3e45356aad
@@ -151,6 +151,12 @@ impl From<rialto_runtime::Header> for SyncHeader {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<SyncHeader> for rialto_runtime::Header {
|
||||
fn from(header: SyncHeader) -> Self {
|
||||
header.0
|
||||
}
|
||||
}
|
||||
|
||||
impl SourceHeader<rialto_runtime::Hash, rialto_runtime::BlockNumber> for SyncHeader {
|
||||
fn id(&self) -> HeaderId {
|
||||
relay_utils::HeaderId(*self.number(), self.hash())
|
||||
|
||||
Reference in New Issue
Block a user