Address grumbles in eras PR (#782)

* Address grumbles

* Fix hash
This commit is contained in:
Gav Wood
2018-09-20 23:18:47 +02:00
committed by GitHub
parent 67bf1a6eaa
commit ebb688f81f
10 changed files with 42 additions and 35 deletions
+2 -2
View File
@@ -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.