feat: show current shares in p2pool Tab submenu process

This commit is contained in:
Cyrix126 2024-03-25 22:26:54 +01:00
parent aee777d160
commit e528f7d809
2 changed files with 11 additions and 0 deletions

View file

@ -160,6 +160,15 @@ fn p2pool(
) )
.on_hover_text(STATUS_P2POOL_UPTIME); .on_hover_text(STATUS_P2POOL_UPTIME);
ui.add_sized([width, height], Label::new(format!("{}", api.uptime))); ui.add_sized([width, height], Label::new(format!("{}", api.uptime)));
ui.add_sized(
[width, height],
Label::new(RichText::new("Current Shares").underline().color(BONE)),
)
.on_hover_text(STATUS_P2POOL_CURRENT_SHARES);
ui.add_sized(
[width, height],
Label::new(api.sidechain_shares.to_string()),
);
ui.add_sized( ui.add_sized(
[width, height], [width, height],
Label::new(RichText::new("Shares Found").underline().color(BONE)), Label::new(RichText::new("Shares Found").underline().color(BONE)),

View file

@ -176,6 +176,8 @@ pub const STATUS_P2POOL_PAYOUTS: &str = "The total amount of payouts receive
pub const STATUS_P2POOL_XMR: &str = "The total amount of XMR mined in this instance of P2Pool and an extrapolated estimate of how many you will mine in the future. Warning: these stats will be quite inaccurate if your P2Pool hasn't been running for a long time!"; pub const STATUS_P2POOL_XMR: &str = "The total amount of XMR mined in this instance of P2Pool and an extrapolated estimate of how many you will mine in the future. Warning: these stats will be quite inaccurate if your P2Pool hasn't been running for a long time!";
pub const STATUS_P2POOL_HASHRATE: &str = "The total amount of hashrate your P2Pool has pointed at it in 15 minute, 1 hour, and 24 hour averages"; pub const STATUS_P2POOL_HASHRATE: &str = "The total amount of hashrate your P2Pool has pointed at it in 15 minute, 1 hour, and 24 hour averages";
pub const STATUS_P2POOL_SHARES: &str = "The total amount of shares found on P2Pool"; pub const STATUS_P2POOL_SHARES: &str = "The total amount of shares found on P2Pool";
pub const STATUS_P2POOL_CURRENT_SHARES: &str =
"Current shares valid in the PPLNS Window for your address";
pub const STATUS_P2POOL_EFFORT: &str = pub const STATUS_P2POOL_EFFORT: &str =
"The average amount of effort needed to find a share, and the current effort"; "The average amount of effort needed to find a share, and the current effort";
pub const STATUS_P2POOL_CONNECTIONS: &str = "The total amount of miner connections on this P2Pool"; pub const STATUS_P2POOL_CONNECTIONS: &str = "The total amount of miner connections on this P2Pool";