Skip to content

Commit

Permalink
Added more panic exits (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingela committed Nov 8, 2019
1 parent 9d42d3c commit 916a1c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ private TransactionBatch processTransactionBatch(TransactionBatch transactionBat
}
} catch (Exception exception) {
logger.error("Error during " + hex + " transaction validation: ", exception);
System.exit(1);
}
return transactionBatch;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ private void processBlockTransactions(Scheduler scheduler) {
.getPayload()
.getTransactionsList()
);
} finally {
blockSubscription.getAcknowledgment().ack();
} catch (Throwable t) {
logger.error("Block processor encountered an error", t);
System.exit(1);
}
}
);
Expand All @@ -190,7 +192,9 @@ private void processCommitted(List<Transaction> blockTransactions) {
registerCreatedAccountByTransactionScanning(transaction);
modifyUserQuorumIfNeeded(transaction);
} catch (Exception e) {
logger.warn("Couldn't process account changes from the committed block", e);
throw new IllegalStateException(
"Couldn't process account changes from the committed block", e
);
}
}
);
Expand Down

0 comments on commit 916a1c5

Please sign in to comment.