mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 03:31:05 +00:00
@@ -64,12 +64,12 @@ pub trait Lookup {
|
||||
}
|
||||
|
||||
/// Get the "current" block number.
|
||||
pub trait GetHeight {
|
||||
pub trait CurrentHeight {
|
||||
/// The type of the block number.
|
||||
type BlockNumber;
|
||||
|
||||
/// Return the current block number. Not allowed to fail.
|
||||
fn get_height(&self) -> Self::BlockNumber;
|
||||
fn current_height(&self) -> Self::BlockNumber;
|
||||
}
|
||||
|
||||
/// Translate a block number into a hash.
|
||||
|
||||
Reference in New Issue
Block a user