mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 12:11:09 +00:00
Tests and docs, plus some fixes.
This commit is contained in:
@@ -59,6 +59,11 @@ pub fn length() -> BlockNumber {
|
||||
Storable::lookup_default(b"ses:len")
|
||||
}
|
||||
|
||||
/// The number of validators currently.
|
||||
pub fn validator_count() -> usize {
|
||||
ValidatorStorageVec::count() as usize
|
||||
}
|
||||
|
||||
/// The current era index.
|
||||
pub fn current_index() -> BlockNumber {
|
||||
Storable::lookup_default(b"ses:ind")
|
||||
|
||||
Reference in New Issue
Block a user