Skip to content

Commit 96fc4ed

Browse files
committed
Fix wrong types
1 parent 74ace0c commit 96fc4ed

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

trinity/nodes/full.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
BaseChain
33
)
44

5+
from lahja import Endpoint
6+
57
from p2p.peer import BasePeerPool
68

79
from trinity.config import TrinityConfig
8-
from trinity.extensibility import PluginManager
910
from trinity.server import FullServer
1011

1112
from .base import Node
@@ -15,8 +16,8 @@ class FullNode(Node):
1516
_chain: BaseChain = None
1617
_p2p_server: FullServer = None
1718

18-
def __init__(self, plugin_manager: PluginManager, trinity_config: TrinityConfig) -> None:
19-
super().__init__(plugin_manager, trinity_config)
19+
def __init__(self, event_bus: Endpoint, trinity_config: TrinityConfig) -> None:
20+
super().__init__(event_bus, trinity_config)
2021
self._bootstrap_nodes = trinity_config.bootstrap_nodes
2122
self._preferred_nodes = trinity_config.preferred_nodes
2223
self._node_key = trinity_config.nodekey

trinity/nodes/light.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
from eth_keys.datatypes import PrivateKey
77

8+
from lahja import Endpoint
9+
810
from p2p.peer import BasePeerPool
911

1012
from trinity.chains.light import (
@@ -13,9 +15,6 @@
1315
from trinity.config import (
1416
TrinityConfig,
1517
)
16-
from trinity.extensibility import (
17-
PluginManager
18-
)
1918
from trinity.nodes.base import Node
2019
from trinity.protocol.les.peer import LESPeerPool
2120
from trinity.server import LightServer
@@ -32,8 +31,8 @@ class LightNode(Node):
3231
network_id: int = None
3332
nodekey: PrivateKey = None
3433

35-
def __init__(self, plugin_manager: PluginManager, trinity_config: TrinityConfig) -> None:
36-
super().__init__(plugin_manager, trinity_config)
34+
def __init__(self, event_bus: Endpoint, trinity_config: TrinityConfig) -> None:
35+
super().__init__(event_bus, trinity_config)
3736

3837
self._nodekey = trinity_config.nodekey
3938
self._port = trinity_config.port

0 commit comments

Comments
 (0)