From e873fbb0dd94af5fc202cbc2be315d8c4b06dc64 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Mon, 7 Oct 2024 20:10:08 +0000 Subject: [PATCH] fix total rewards calculus --- program/src/mine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/mine.rs b/program/src/mine.rs index 2e4b1d0..9597030 100644 --- a/program/src/mine.rs +++ b/program/src/mine.rs @@ -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. //