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

Commit

Permalink
Fix rewards eunits
Browse files Browse the repository at this point in the history
  • Loading branch information
vihu committed Oct 22, 2020
1 parent 079d3e6 commit f04663b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/transactions/v1/blockchain_txn_rewards_v1.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,8 @@ poc_witnesses_rewards_test() ->
poc_challengees_percent => 0.0,
poc_challengers_percent => 0.0,
dc_remainder => 0,
poc_version => 5
poc_version => 5,
witness_redundancy => 1
},

LedgerVars = maps:put(?poc_version, 5, common_poc_vars()),
Expand Down Expand Up @@ -1355,7 +1356,8 @@ old_poc_witnesses_rewards_test() ->
poc_challengers_percent => 0.0,
poc_challengees_percent => 0.0,
dc_remainder => 0,
poc_version => 2
poc_version => 2,
witness_redundancy => 1
},
Rewards = #{
{gateway, poc_witnesses, <<"1">>} => 25,
Expand Down Expand Up @@ -1471,7 +1473,7 @@ dc_rewards_v3_spillover_test() ->
dc_percent => 0.05,
consensus_percent => 0.1,
poc_challengees_percent => 0.20,
poc_challengers_percent => 0.15,
poc_challengers_percent => 0.15,
poc_witnesses_percent => 0.15,
securities_percent => 0.35,
sc_version => 2,
Expand All @@ -1480,7 +1482,8 @@ dc_rewards_v3_spillover_test() ->
poc_version => 5,
dc_remainder => 0,
oracle_price => 100000000, %% 1 dollar
consensus_members => [<<"c">>, <<"d">>]
consensus_members => [<<"c">>, <<"d">>],
witness_redundancy => 1
},

LedgerVars = maps:merge(#{?poc_version => 5, ?sc_version => 2, ?sc_grace_blocks => 5}, common_poc_vars()),
Expand Down

0 comments on commit f04663b

Please sign in to comment.