Skip to content

Commit

Permalink
Wen restart send heaviest fork earlier when first hearing from superm…
Browse files Browse the repository at this point in the history
…ajority. (#1675)

* Send HeaviestFork the first time we hear from supermajority.

* Fix lint errors.

* - Send RestartHeaviestFork every 5 minutes
- Send the first one when greater or equal to the threshold
- Add corresponding unit tests

* Replace magic numbers with constants.
  • Loading branch information
wen-coding authored Aug 2, 2024
1 parent eae4987 commit 752a061
Showing 1 changed file with 218 additions and 31 deletions.
Loading

0 comments on commit 752a061

Please sign in to comment.