|
|
@@ -129,7 +129,7 @@ type ProtocolManager struct {
|
|
|
|
|
|
// NewProtocolManager returns a new ethereum sub protocol manager. The Ethereum sub protocol manages peers capable
|
|
|
// with the ethereum network.
|
|
|
-func NewProtocolManager(chainConfig *params.ChainConfig, lightSync bool, protocolVersions []uint, networkId uint64, mux *event.TypeMux, engine consensus.Engine, peers *peerSet, blockchain BlockChain, txpool txPool, chainDb ethdb.Database, odr *LesOdr, txrelay *LesTxRelay, quitSync chan struct{}, wg *sync.WaitGroup) (*ProtocolManager, error) {
|
|
|
+func NewProtocolManager(chainConfig *params.ChainConfig, lightSync bool, protocolVersions []uint, networkId uint64, mux *event.TypeMux, engine consensus.Engine, peers *peerSet, blockchain BlockChain, txpool txPool, chainDb ethdb.Database, odr *LesOdr, txrelay *LesTxRelay, serverPool *serverPool, quitSync chan struct{}, wg *sync.WaitGroup) (*ProtocolManager, error) {
|
|
|
// Create the protocol manager with the base fields
|
|
|
manager := &ProtocolManager{
|
|
|
lightSync: lightSync,
|
|
|
@@ -141,6 +141,7 @@ func NewProtocolManager(chainConfig *params.ChainConfig, lightSync bool, protoco
|
|
|
networkId: networkId,
|
|
|
txpool: txpool,
|
|
|
txrelay: txrelay,
|
|
|
+ serverPool: serverPool,
|
|
|
peers: peers,
|
|
|
newPeerCh: make(chan *peer),
|
|
|
quitSync: quitSync,
|