[BUG] admin_addPeer isn't periodically checking maintained connections (#871)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Chris Mckay 6 years ago committed by GitHub
parent 6af7ab1b93
commit 48986b70c2
  1. 3
      ethereum/p2p/src/main/java/tech/pegasys/pantheon/ethereum/p2p/NetworkRunner.java

@ -90,7 +90,8 @@ public class NetworkRunner implements AutoCloseable {
LOG.info("Starting Network.");
setupHandlers();
networkExecutor.submit(network);
networkCheckExecutor.schedule(network::checkMaintainedConnectionPeers, 60, TimeUnit.SECONDS);
networkCheckExecutor.scheduleWithFixedDelay(
network::checkMaintainedConnectionPeers, 60, 60, TimeUnit.SECONDS);
} else {
LOG.error("Attempted to start already running network.");
}

Loading…
Cancel
Save