fix total rewards calculus

This commit is contained in:
Hardhat Chad
2024-10-07 20:10:08 +00:00
parent f356139484
commit e873fbb0dd

View File

@@ -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.
//