Add --only-mandatory-headers mode (#1004)

This commit is contained in:
Svyatoslav Nikolsky
2021-06-16 22:03:03 +03:00
committed by Bastian Köcher
parent 09df16612b
commit c69c682a4c
6 changed files with 260 additions and 58 deletions
@@ -51,6 +51,11 @@ impl<C: Chain, P> FinalitySource<C, P> {
}
}
/// Returns reference to the underlying RPC client.
pub fn client(&self) -> &Client<C> {
&self.client
}
/// Returns best finalized block number.
pub async fn on_chain_best_finalized_block_number(&self) -> Result<C::BlockNumber, Error> {
// we **CAN** continue to relay finality proofs if source node is out of sync, because