Skip to content

Commit

Permalink
Add accepted shares to stats api
Browse files Browse the repository at this point in the history
  • Loading branch information
De-Crypted committed Aug 20, 2022
1 parent 4687523 commit 9fd3078
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Managers/StatusManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public static Stats QueryStats()
{
hashes = hashes,
uptime = Convert.ToInt64(Watch.Elapsed.TotalSeconds),
ver = "2.1.0", // TODO: Set Assembly version upon release
ver = "2.2.1", // TODO: Set Assembly version upon release
accepted = AcceptedShares,
rejected = RejectedShares
};
}
Expand Down
1 change: 1 addition & 0 deletions Stats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class Stats
public ulong hashes { get; set; }
public long uptime { get; set; }
public string ver { get; set; }
public long accepted { get; set; }
public long rejected { get; set; }
}
}

0 comments on commit 9fd3078

Please sign in to comment.