3
3
"""
4
4
5
5
import logging
6
- from pathlib import Path
7
6
8
7
from backends import ServiceType
9
8
from warnet .lnnode import LNNode
24
23
class Tank :
25
24
DEFAULT_BUILD_ARGS = "--disable-tests --with-incompatible-bdb --without-gui --disable-bench --disable-fuzz-binary --enable-suppress-external-warnings --enable-debug "
26
25
27
- def __init__ (self , index : int , config_dir : Path , warnet ):
26
+ def __init__ (self , index : int , warnet ):
28
27
self .index = index
29
- self .config_dir = config_dir
30
28
self .warnet = warnet
31
29
self .network_name = warnet .network_name
32
30
self .bitcoin_network = warnet .bitcoin_network
@@ -84,9 +82,6 @@ def parse_graph_node(self, node):
84
82
self .warnet , self , impl , image , self .warnet .container_interface , cb_image
85
83
)
86
84
87
- self .config_dir = self .warnet .config_dir / str (self .suffix )
88
- self .config_dir .mkdir (parents = True , exist_ok = True )
89
-
90
85
logger .debug (
91
86
f"Parsed graph node: { self .index } with attributes: { [f'{ key } ={ value } ' for key , value in graph_properties .items ()]} "
92
87
)
@@ -95,11 +90,9 @@ def parse_graph_node(self, node):
95
90
def from_graph_node (cls , index , warnet , tank = None ):
96
91
assert index is not None
97
92
index = int (index )
98
- config_dir = warnet .config_dir / str (f"{ index :06} " )
99
- config_dir .mkdir (parents = True , exist_ok = True )
100
93
self = tank
101
94
if self is None :
102
- self = cls (index , config_dir , warnet )
95
+ self = cls (index , warnet )
103
96
node = warnet .graph .nodes [index ]
104
97
self .parse_graph_node (node )
105
98
return self
0 commit comments