Skip to content

Commit

Permalink
Fix existing balance tracking that caused subtraction with overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Dec 21, 2023
1 parent 2730924 commit 1edce85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/running.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ impl RunningView {
let previous_diff = self.farmer_state.reward_address_balance
- self.farmer_state.initial_reward_address_balance;
self.farmer_state.initial_reward_address_balance =
imported_block.reward_address_balance + previous_diff;
imported_block.reward_address_balance - previous_diff;
}
self.farmer_state.reward_address_balance =
imported_block.reward_address_balance;
Expand Down

0 comments on commit 1edce85

Please sign in to comment.