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(), config.downloaderHeaderRequestSize(),
ethTasksTimer) ethTasksTimer)
.run() .run()
.handle((r, t) -> r) .handle(
(result, error) -> {
if (error != null) {
LOG.debug("Failed to find common ancestor", error);
}
return result;
})
.thenCompose( .thenCompose(
(target) -> { (target) -> {
if (target == null) { if (target == null) {

Loading…
Cancel
Save