Log errors that occur while finding a common ancestor (#814)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Adrian Sutton 6 years ago committed by GitHub
parent 77581bcdfb
commit f6bb1b2279
  1. 8
      ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/sync/SyncTargetManager.java

@ -78,7 +78,13 @@ public abstract class SyncTargetManager<C> {
config.downloaderHeaderRequestSize(),
ethTasksTimer)
.run()
.handle((r, t) -> r)
.handle(
(result, error) -> {
if (error != null) {
LOG.debug("Failed to find common ancestor", error);
}
return result;
})
.thenCompose(
(target) -> {
if (target == null) {

Loading…
Cancel
Save