From f38712ef1fbd78dfaf5869f620826aab74be6562 Mon Sep 17 00:00:00 2001 From: brewmaster012 <88689859+brewmaster012@users.noreply.github.com> Date: Tue, 23 Jan 2024 10:45:10 -0800 Subject: [PATCH] added ips on main --- common.js | 11 +++++++++++ zetaclients.js | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/common.js b/common.js index 87bfd2c..a1b3133 100644 --- a/common.js +++ b/common.js @@ -161,6 +161,17 @@ if (network == "mockmain") { } }; // zetaclientIPs = ["50.16.78.24", "44.218.42.109","44.216.230.163"]; + zetaclientIPs = [ + "34.225.36.174", + "52.45.59.77", + "52.35.128.130", + "35.87.167.186", + "54.212.38.135", + "150.136.225.11", + "129.146.167.182", + "208.91.106.108", + "15.235.10.84" + ]; } else { // default to athens3 bitcoinChainID = 18332; diff --git a/zetaclients.js b/zetaclients.js index 30c6238..f696270 100644 --- a/zetaclients.js +++ b/zetaclients.js @@ -118,6 +118,11 @@ async function zetaclients_versions() { let lastscannedPromises = []; for (let i = 0; i < IPs.length; i++) { + const res = await fetch(`${corsProxyURL}/http://${IPs[i]}:8123/ping`); + if (!res.ok) { + console.log(`IP or 8123 port not availableError: ${IPs[i]} ${res.status}` ); + continue; + } fetch(`${corsProxyURL}/http://${IPs[i]}:8123/ip`, {method: 'GET'}) .then(response => { if (response.ok) {