mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
fix total rewards calculus
This commit is contained in:
@@ -226,7 +226,7 @@ pub fn process_mine(accounts: &[AccountInfo], data: &[u8]) -> ProgramResult {
|
||||
|
||||
// Update lifetime stats.
|
||||
proof.total_hashes = proof.total_hashes.saturating_add(1);
|
||||
proof.total_rewards = proof.total_rewards.saturating_add(reward);
|
||||
proof.total_rewards = proof.total_rewards.saturating_add(reward_actual);
|
||||
|
||||
// Log the mined rewards.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user