usage of active era for reward points and bump version
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
ba79a4cba8
commit
87eca056a3
@ -2,7 +2,7 @@
|
||||
name = "ghost-eye"
|
||||
authors = ["str3tch <stretch@ghostchain.io>"]
|
||||
description = "Application for interacting with Casper/Ghost nodes that are exposing RPC only to the localhost"
|
||||
version = "0.3.14"
|
||||
version = "0.3.15"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
@ -307,8 +307,9 @@ pub async fn get_current_validator_reward_in_era(
|
||||
action_tx: &UnboundedSender<Action>,
|
||||
api: &OnlineClient<CasperConfig>,
|
||||
) -> Result<()> {
|
||||
let era_index = super::raw_calls::staking::current_era(api, None)
|
||||
let era_index = super::raw_calls::staking::active_era(api, None)
|
||||
.await?
|
||||
.map(|era_info| era_info.index)
|
||||
.unwrap_or_default();
|
||||
|
||||
let disabled_validators = super::raw_calls::staking::disabled_validators(api, None)
|
||||
|
Loading…
Reference in New Issue
Block a user