mirror of
https://github.com/d0zingcat/ore.git
synced 2026-06-07 15:11:33 +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.
|
// Update lifetime stats.
|
||||||
proof.total_hashes = proof.total_hashes.saturating_add(1);
|
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.
|
// Log the mined rewards.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user