File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
setup_wallet ,
20
20
)
21
21
22
+ LOCALNET_IMAGE_NAME = "ghcr.io/opentensor/subtensor-localnet:devnet-ready"
23
+
22
24
23
25
def wait_for_node_start (process , timestamp = None ):
24
26
"""Waits for node to start in the docker."""
@@ -132,6 +134,7 @@ def is_docker_running():
132
134
stderr = subprocess .DEVNULL ,
133
135
check = True ,
134
136
)
137
+ subprocess .run (["docker" , "pull" , LOCALNET_IMAGE_NAME ], check = True )
135
138
return True
136
139
except subprocess .CalledProcessError :
137
140
return False
@@ -162,7 +165,6 @@ def try_start_docker():
162
165
return False
163
166
164
167
container_name = f"test_local_chain_{ str (time .time ()).replace ("." , "_" )} "
165
- image_name = "ghcr.io/opentensor/subtensor-localnet:devnet-ready"
166
168
167
169
# Command to start container
168
170
cmds = [
@@ -175,7 +177,7 @@ def try_start_docker():
175
177
"9944:9944" ,
176
178
"-p" ,
177
179
"9945:9945" ,
178
- image_name ,
180
+ LOCALNET_IMAGE_NAME ,
179
181
params ,
180
182
]
181
183
You can’t perform that action at this time.
0 commit comments