File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
BaseChain
3
3
)
4
4
5
+ from lahja import Endpoint
6
+
5
7
from p2p .peer import BasePeerPool
6
8
7
9
from trinity .config import TrinityConfig
8
- from trinity .extensibility import PluginManager
9
10
from trinity .server import FullServer
10
11
11
12
from .base import Node
@@ -15,8 +16,8 @@ class FullNode(Node):
15
16
_chain : BaseChain = None
16
17
_p2p_server : FullServer = None
17
18
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 )
20
21
self ._bootstrap_nodes = trinity_config .bootstrap_nodes
21
22
self ._preferred_nodes = trinity_config .preferred_nodes
22
23
self ._node_key = trinity_config .nodekey
Original file line number Diff line number Diff line change 5
5
6
6
from eth_keys .datatypes import PrivateKey
7
7
8
+ from lahja import Endpoint
9
+
8
10
from p2p .peer import BasePeerPool
9
11
10
12
from trinity .chains .light import (
13
15
from trinity .config import (
14
16
TrinityConfig ,
15
17
)
16
- from trinity .extensibility import (
17
- PluginManager
18
- )
19
18
from trinity .nodes .base import Node
20
19
from trinity .protocol .les .peer import LESPeerPool
21
20
from trinity .server import LightServer
@@ -32,8 +31,8 @@ class LightNode(Node):
32
31
network_id : int = None
33
32
nodekey : PrivateKey = None
34
33
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 )
37
36
38
37
self ._nodekey = trinity_config .nodekey
39
38
self ._port = trinity_config .port
You can’t perform that action at this time.
0 commit comments