Skip to content

Commit

Permalink
- Fixed new_block triggered ar_join starting.
Browse files Browse the repository at this point in the history
  • Loading branch information
samcamwilliams committed Oct 19, 2018
1 parent 38552b1 commit c07f1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ar_node_worker.erl
Expand Up @@ -338,8 +338,8 @@ maybe_remove_tx(TXs, TXID, Sig) ->

%% @doc Validate whether a new block is legitimate, then handle it, optionally
%% dropping or starting a fork recoverer as appropriate.
process_new_block(_StateIn, NewGS, _NewB, _, _Peer, not_joined) ->
ar_join:start(ar_gossip:peers(NewGS)),
process_new_block(_StateIn, NewGS, NewB, _, _Peer, not_joined) ->
ar_join:start(ar_gossip:peers(NewGS), NewB),
none;
process_new_block(#{ height := Height } = StateIn, NewGS, NewB, unavailable, Peer, HashList)
when NewB#block.height == Height + 1 ->
Expand Down

0 comments on commit c07f1a9

Please sign in to comment.