| 178 | // A node handle panicked or was cancelled: surface it as a failure. |
| 179 | Err(e) => { |
| 180 | tracing::error!("node task panicked or was cancelled: {:?}", e); |
| 181 | std::process::exit(1); |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | // Due to how alloy node_bindings work we have to do this to prevent the reth_instances from being dropped and shutdown by the compiler |
| 186 | for reth in handles { |
| 187 | println!("{:?}", reth.auth_port()); |
| 188 | } |
| 189 | |
| 190 | Ok(()) |
| 191 | } |
| 192 | }) |
| 193 | } |
| 194 | |
| 195 | fn get_node_flags(node: usize) -> RunFlags { |
| 196 | let path = format!("testnet/node{node}/"); |
| 197 | |
| 198 | RunFlags { |
| 199 | key_store_path: path.clone(), |
| 200 | store_path: format!("{path}db"), |
| 201 | port: (26600 + (node * 10)) as u16, |
| 202 | prom_port: (28600 + (node * 10)) as u16, |
| 203 | prom_ip: "0.0.0.0".into(), |
| 204 | rpc_ip: "0.0.0.0".into(), |
| 205 | rpc_port: (3030 + (node * 10)) as u16, |
| 206 | admin_rpc_port: (3031 + (node * 10)) as u16, |
| 207 | rpc_max_request_body_size: summit_rpc::DEFAULT_RPC_BODY_LIMIT_BYTES, |