File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,13 @@ def setup(self):
61
61
62
62
self .warnet = Warnet .from_network (self .options .network , self .options .backend )
63
63
for i , tank in enumerate (self .warnet .tanks ):
64
- ip = tank . ipv4
65
- self .log . info ( f"Adding TestNode { i } from tank { tank .index } with IP { ip } " )
64
+ self . log . info ( f"Adding TestNode { i } from tank { tank . index } " )
65
+ tank_ip = self .warnet . container_interface . get_tank_ipv4 ( tank .index )
66
66
node = TestNode (
67
67
i ,
68
68
pathlib .Path (), # datadir path
69
69
chain = tank .bitcoin_network ,
70
- rpchost = ip ,
70
+ rpchost = tank_ip ,
71
71
timewait = 60 ,
72
72
timeout_factor = self .options .timeout_factor ,
73
73
bitcoind = None ,
@@ -76,7 +76,7 @@ def setup(self):
76
76
coverage_dir = self .options .coveragedir ,
77
77
)
78
78
node .rpc = get_rpc_proxy (
79
- f"http://{ tank .rpc_user } :{ tank .rpc_password } @{ ip } :{ tank .rpc_port } " ,
79
+ f"http://{ tank .rpc_user } :{ tank .rpc_password } @{ tank_ip } :{ tank .rpc_port } " ,
80
80
i ,
81
81
timeout = 60 ,
82
82
coveragedir = self .options .coveragedir ,
You can’t perform that action at this time.
0 commit comments