usage of active era for reward points and bump version

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2025-01-23 17:25:41 +03:00
parent ba79a4cba8
commit 87eca056a3
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
3 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
name = "ghost-eye" name = "ghost-eye"
authors = ["str3tch <stretch@ghostchain.io>"] authors = ["str3tch <stretch@ghostchain.io>"]
description = "Application for interacting with Casper/Ghost nodes that are exposing RPC only to the localhost" 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" edition = "2021"
[dependencies] [dependencies]

View File

@ -307,8 +307,9 @@ pub async fn get_current_validator_reward_in_era(
action_tx: &UnboundedSender<Action>, action_tx: &UnboundedSender<Action>,
api: &OnlineClient<CasperConfig>, api: &OnlineClient<CasperConfig>,
) -> Result<()> { ) -> Result<()> {
let era_index = super::raw_calls::staking::current_era(api, None) let era_index = super::raw_calls::staking::active_era(api, None)
.await? .await?
.map(|era_info| era_info.index)
.unwrap_or_default(); .unwrap_or_default();
let disabled_validators = super::raw_calls::staking::disabled_validators(api, None) let disabled_validators = super::raw_calls::staking::disabled_validators(api, None)