aboutsummaryrefslogtreecommitdiffstats
path: root/les/backend.go
diff options
context:
space:
mode:
authorFelföldi Zsolt <zsfelfoldi@gmail.com>2018-06-12 19:00:52 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-06-12 19:00:52 +0800
commit546d42179e7c121b4c3aeeec5ab71a3c112e7a64 (patch)
treeec8db9b9127e86f439af6a856ad6c0ab56c060fa /les/backend.go
parentf991995918899c48cc89c4d4ec4329bb4a7ce108 (diff)
downloaddexon-546d42179e7c121b4c3aeeec5ab71a3c112e7a64.tar.gz
dexon-546d42179e7c121b4c3aeeec5ab71a3c112e7a64.tar.zst
dexon-546d42179e7c121b4c3aeeec5ab71a3c112e7a64.zip
les: pass server pool to protocol manager (#16947)
Diffstat (limited to 'les/backend.go')
-rw-r--r--les/backend.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/les/backend.go b/les/backend.go
index 2d8ada7b0..35f67f29f 100644
--- a/les/backend.go
+++ b/les/backend.go
@@ -127,7 +127,7 @@ func New(ctx *node.ServiceContext, config *eth.Config) (*LightEthereum, error) {
}
leth.txPool = light.NewTxPool(leth.chainConfig, leth.blockchain, leth.relay)
- if leth.protocolManager, err = NewProtocolManager(leth.chainConfig, true, ClientProtocolVersions, config.NetworkId, leth.eventMux, leth.engine, leth.peers, leth.blockchain, nil, chainDb, leth.odr, leth.relay, quitSync, &leth.wg); err != nil {
+ if leth.protocolManager, err = NewProtocolManager(leth.chainConfig, true, ClientProtocolVersions, config.NetworkId, leth.eventMux, leth.engine, leth.peers, leth.blockchain, nil, chainDb, leth.odr, leth.relay, leth.serverPool, quitSync, &leth.wg); err != nil {
return nil, err
}
leth.ApiBackend = &LesApiBackend{leth, nil}