mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-07 23:37:22 +00:00
Parse substrate message proof (#479)
* parse substrate message proof * unfinalized_header
This commit is contained in:
committed by
Bastian Köcher
parent
b0a5e75ff4
commit
2d7eacf6e2
@@ -93,6 +93,7 @@ pub fn run_test<T>(test: impl FnOnce() -> T) -> T {
|
||||
|
||||
pub mod helpers {
|
||||
use super::*;
|
||||
use crate::storage::ImportedHeader;
|
||||
use crate::{BridgedBlockHash, BridgedBlockNumber, BridgedHeader};
|
||||
use finality_grandpa::voter_set::VoterSet;
|
||||
use sp_finality_grandpa::{AuthorityId, AuthorityList};
|
||||
@@ -114,6 +115,15 @@ pub mod helpers {
|
||||
header
|
||||
}
|
||||
|
||||
pub fn unfinalized_header(num: u64) -> ImportedHeader<TestHeader> {
|
||||
ImportedHeader {
|
||||
header: test_header(num),
|
||||
requires_justification: false,
|
||||
is_finalized: false,
|
||||
signal_hash: None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn header_id(index: u8) -> HeaderId {
|
||||
(test_header(index.into()).hash(), index as _)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user