@ -46,7 +46,6 @@ import tech.pegasys.pantheon.ethereum.p2p.config.DiscoveryConfiguration;
import tech.pegasys.pantheon.ethereum.p2p.config.NetworkingConfiguration ;
import tech.pegasys.pantheon.ethereum.p2p.config.NetworkingConfiguration ;
import tech.pegasys.pantheon.ethereum.p2p.config.RlpxConfiguration ;
import tech.pegasys.pantheon.ethereum.p2p.config.RlpxConfiguration ;
import tech.pegasys.pantheon.ethereum.p2p.config.SubProtocolConfiguration ;
import tech.pegasys.pantheon.ethereum.p2p.config.SubProtocolConfiguration ;
import tech.pegasys.pantheon.ethereum.p2p.discovery.internal.PeerRequirement ;
import tech.pegasys.pantheon.ethereum.p2p.netty.NettyP2PNetwork ;
import tech.pegasys.pantheon.ethereum.p2p.netty.NettyP2PNetwork ;
import tech.pegasys.pantheon.ethereum.p2p.peers.PeerBlacklist ;
import tech.pegasys.pantheon.ethereum.p2p.peers.PeerBlacklist ;
import tech.pegasys.pantheon.ethereum.p2p.permissioning.NodeWhitelistController ;
import tech.pegasys.pantheon.ethereum.p2p.permissioning.NodeWhitelistController ;
@ -213,9 +212,11 @@ public class RunnerBuilder {
new PeerBlacklist (
new PeerBlacklist (
bannedNodeIds . stream ( ) . map ( BytesValue : : fromHexString ) . collect ( Collectors . toSet ( ) ) ) ;
bannedNodeIds . stream ( ) . map ( BytesValue : : fromHexString ) . collect ( Collectors . toSet ( ) ) ) ;
NodeWhitelistController nodeWhitelistController =
final NodeWhitelistController nodeWhitelistController =
new NodeWhitelistController ( permissioningConfiguration ) ;
new NodeWhitelistController ( permissioningConfiguration ) ;
final Synchronizer synchronizer = pantheonController . getSynchronizer ( ) ;
final NetworkRunner networkRunner =
final NetworkRunner networkRunner =
NetworkRunner . builder ( )
NetworkRunner . builder ( )
. protocolManagers ( protocolManagers )
. protocolManagers ( protocolManagers )
@ -228,7 +229,7 @@ public class RunnerBuilder {
keyPair ,
keyPair ,
networkConfig ,
networkConfig ,
caps ,
caps ,
PeerRequirement . aggregateOf ( protocolManagers ) ,
synchronizer : : hasSufficientPeers ,
peerBlacklist ,
peerBlacklist ,
metricsSystem ,
metricsSystem ,
nodeWhitelistController )
nodeWhitelistController )
@ -236,7 +237,6 @@ public class RunnerBuilder {
. metricsSystem ( metricsSystem )
. metricsSystem ( metricsSystem )
. build ( ) ;
. build ( ) ;
final Synchronizer synchronizer = pantheonController . getSynchronizer ( ) ;
final TransactionPool transactionPool = pantheonController . getTransactionPool ( ) ;
final TransactionPool transactionPool = pantheonController . getTransactionPool ( ) ;
final MiningCoordinator miningCoordinator = pantheonController . getMiningCoordinator ( ) ;
final MiningCoordinator miningCoordinator = pantheonController . getMiningCoordinator ( ) ;