mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 10:27:59 +00:00
Update bridges subtree (#1944)
This commit is contained in:
@@ -42,7 +42,7 @@ struct AncestryChain(bp_header_chain::justification::AncestryChain<TestHeader>);
|
||||
|
||||
impl AncestryChain {
|
||||
fn new(justification: &GrandpaJustification<TestHeader>) -> Self {
|
||||
Self(bp_header_chain::justification::AncestryChain::new(justification))
|
||||
Self(bp_header_chain::justification::AncestryChain::new(justification).0)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ impl finality_grandpa::Chain<TestHash, TestNumber> for AncestryChain {
|
||||
if current_hash == base {
|
||||
break
|
||||
}
|
||||
match self.0.parents.get(¤t_hash) {
|
||||
match self.0.parent_hash_of(¤t_hash) {
|
||||
Some(parent_hash) => {
|
||||
current_hash = *parent_hash;
|
||||
route.push(current_hash);
|
||||
|
||||
Reference in New Issue
Block a user