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

IbftProcessor logs when a throwable terminates mining #1427

Merged
merged 4 commits into from
May 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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