Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
IbftProcessor logs when a throwable terminates mining (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
rain-on authored May 13, 2019
1 parent a453610 commit 81c9a42
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ public void stop() {

@Override
public void run() {
while (!shutdown) {
nextIbftEvent().ifPresent(event -> eventMultiplexer.handleIbftEvent(event));
try {
while (!shutdown) {
nextIbftEvent().ifPresent(eventMultiplexer::handleIbftEvent);
}
} catch (final Throwable t) {
LOG.error("IBFT Mining thread has suffered a fatal error, mining has been halted", t);
}
// Clean up the executor service the round timer has been utilising
LOG.info("Shutting down IBFT event processor");
Expand Down

0 comments on commit 81c9a42

Please sign in to comment.