Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagabond committed Aug 21, 2020
1 parent cb0c226 commit 076dae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transactions/v1/blockchain_txn_rewards_v1.erl
Expand Up @@ -228,13 +228,13 @@ get_rewards_for_epoch(Start, End, Chain, Vars, Ledger) ->
get_rewards_for_epoch(Start, End, Chain, Vars, Ledger, #{}, #{}, #{}, #{}).

get_rewards_for_epoch(Start, End, _Chain, Vars0, _Ledger, ChallengerRewards, ChallengeeRewards, WitnessRewards, DCRewards) when Start == End+1 ->
{DCRemainder, DCRewards} = normalize_dc_rewards(DCRewards, Vars0),
{DCRemainder, NewDCRewards} = normalize_dc_rewards(DCRewards, Vars0),
Vars = maps:put(dc_remainder, DCRemainder, Vars0),
%% apply the DC remainder, if any to the other PoC categories pro rata
{ok, normalize_challenger_rewards(ChallengerRewards, Vars),
normalize_challengee_rewards(ChallengeeRewards, Vars),
normalize_witness_rewards(WitnessRewards, Vars),
DCRewards};
NewDCRewards};
get_rewards_for_epoch(Current, End, Chain, Vars, Ledger, ChallengerRewards, ChallengeeRewards, WitnessRewards, DCRewards) ->
case blockchain:get_block(Current, Chain) of
{error, _Reason}=Error ->
Expand Down

0 comments on commit 076dae6

Please sign in to comment.