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"
|
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]
|
||||||
|
@ -139,7 +139,7 @@ impl Component for Wallet {
|
|||||||
component.handle_key_event(key)?;
|
component.handle_key_event(key)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_ => match key.code {
|
_ => match key.code {
|
||||||
KeyCode::Esc => {
|
KeyCode::Esc => {
|
||||||
self.is_active = false;
|
self.is_active = false;
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user