Skip to content

Commit

Permalink
add the missing send tuple, fix the common test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Garg committed May 5, 2018
1 parent af359cb commit 7dd93d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hbbft_bba.erl
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ bval(Data=#bba_data{n=N, f=F}, Id, V) ->
%% TODO need more entropy for the SID
{CoinData, {send, CoinSend}} = hbbft_cc:get_coin(hbbft_cc:init(NewData3#bba_data.secret_key, term_to_binary({NewData3#bba_data.round}), N, F)),
{NewData3#bba_data{coin=CoinData}, {send, hbbft_utils:wrap({coin, Data#bba_data.round}, CoinSend) ++ ToSend2}};
false ->
{NewData3, ToSend2}
_ ->
{NewData3, {send, ToSend2}}
end;
false ->
{NewData3, {send, ToSend2}}
Expand Down

0 comments on commit 7dd93d1

Please sign in to comment.