Commit dc20ea56 authored by Andrew Thompson's avatar Andrew Thompson
Browse files

Fix BBA indexing to be compatible with bitvectors and bump core for p2p

parent a11c380f
Showing with 3 additions and 1 deletion
+3 -1
......@@ -343,7 +343,9 @@ handle_message(BinMsg, Index, State=#state{hbbft = HBBFT}) ->
callback_message(_, _, _) -> none.
make_bba(Sz, Metadata) ->
M = maps:from_list([{Id, true} || {Id, _} <- Metadata]),
%% note that BBA indices are 0 indexed, but bitvectors are 1 indexed
%% so we correct that here
M = maps:from_list([{Id + 1, true} || {Id, _} <- Metadata]),
M1 = lists:foldl(fun(Id, Acc) ->
case Acc of
#{Id := _} ->
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment