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

This commit is contained in:
Svyatoslav Nikolsky authored and Bastian Köcher committed 2024-04-10 10:28:37 +02:00
1 parent 09df16612b
commit c69c682a4c
6 files changed
+260 -58

No files matched your search

@@ -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