mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
Generic SyncHeader type (#529)
* generic SyncHeader type * add panic condition to method description * extract -> into_inner * checked_sub + expect
This commit is contained in:
committed by
Bastian Köcher
parent
dd7242bc79
commit
441f63a34f
@@ -84,6 +84,8 @@ pub trait SourceHeader<Hash, Number>: Clone + std::fmt::Debug + PartialEq + Send
|
||||
/// Returns ID of header.
|
||||
fn id(&self) -> HeaderId<Hash, Number>;
|
||||
/// Returns ID of parent header.
|
||||
///
|
||||
/// Panics if called for genesis header.
|
||||
fn parent_id(&self) -> HeaderId<Hash, Number>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user