Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #971 from helium/pevm/no-reverse-catchup
Browse files Browse the repository at this point in the history
sharply limit the amount of negative catchup possible
  • Loading branch information
evanmcc authored Aug 11, 2021
2 parents f1f979f + a53e8d8 commit 1c9b36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miner.erl
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ set_next_block_timer(State=#state{blockchain=Chain}) ->
BlockTimeDeviation =
case BlockTimeDeviation0 of
N when N > 0 ->
catchup_time(abs(N));
min(1, catchup_time(abs(N)));
N ->
-1 * catchup_time(abs(N))
end,
Expand Down

0 comments on commit 1c9b36e

Please sign in to comment.