mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
Change Runtime APIs best_finalized() signature
Change Runtime APIs best_finalized() signature to return Option<HeaderId> Signed-off-by: Serban Iorga <serban@parity.io>
This commit is contained in:
committed by
Bastian Köcher
parent
f13211344b
commit
7969459d07
@@ -104,7 +104,7 @@ sp_api::decl_runtime_apis! {
|
||||
/// Westend runtime itself.
|
||||
pub trait WestendFinalityApi {
|
||||
/// Returns number and hash of the best finalized header known to the bridge module.
|
||||
fn best_finalized() -> Option<(BlockNumber, Hash)>;
|
||||
fn best_finalized() -> Option<bp_runtime::HeaderId<Hash, BlockNumber>>;
|
||||
}
|
||||
|
||||
/// API for querying information about the finalized Westmint headers.
|
||||
@@ -113,7 +113,7 @@ sp_api::decl_runtime_apis! {
|
||||
/// Westmint runtime itself.
|
||||
pub trait WestmintFinalityApi {
|
||||
/// Returns number and hash of the best finalized header known to the bridge module.
|
||||
fn best_finalized() -> Option<(BlockNumber, Hash)>;
|
||||
fn best_finalized() -> Option<bp_runtime::HeaderId<Hash, BlockNumber>>;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user