Skip to content

Commit

Permalink
Attempt to fix tests on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagabond committed Nov 13, 2018
1 parent fff5ac8 commit 1126d81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/hbbft_relcast_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ handle_cast(Msg, State) ->
{noreply, State}.

handle_info({transactions, Txns}, State) ->
%% ct:pal("Got transactions for creating a new block: ~p", [Txns]),
NewBlock = new_block(Txns, State),
%% make sure all the transactions are unique
ExistingTxns = lists:flatten([ block_transactions(B) || B <- State#state.blocks ]),
UniqueTxns = Txns -- ExistingTxns,
NewBlock = new_block(UniqueTxns, State),
{ok, Relcast} = relcast:command({finalize_round, Txns, term_to_binary(NewBlock)}, State#state.relcast),
{noreply, do_send(State#state{relcast=Relcast, tempblock=NewBlock})};
handle_info({signature, Sig, Pubkey}, State=#state{tempblock=TempBlock, peers=Peers}) when TempBlock /= undefined ->
Expand Down

0 comments on commit 1126d81

Please sign in to comment.