From 2f3e5fba85e4e14054857b988410dbe391dc0648 Mon Sep 17 00:00:00 2001 From: wanwiset25 Date: Wed, 7 Aug 2024 16:25:17 +0400 Subject: [PATCH] gsbn = 1 not 0 --- cicd/util.js | 6 +++--- network.config.json | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cicd/util.js b/cicd/util.js index 5451b76..c136518 100644 --- a/cicd/util.js +++ b/cicd/util.js @@ -74,15 +74,15 @@ async function getGapSubnet(config) { if (response.status == 200) { if (response.data.error){ if (response.data.error.code == -32601){ - return 0 + return 1 } console.log("response.data.error", response.data.error) throw Error("error in subnet gapblock response") } epochBlockNum = response.data.result.EpochBlockNumber; gapBlockNum = epochBlockNum-450+1 - if (gapBlockNum < 0){ - gapBlockNum = 0 + if (gapBlockNum < 1){ + gapBlockNum = 1 } return gapBlockNum diff --git a/network.config.json b/network.config.json index b88ee18..f351d39 100644 --- a/network.config.json +++ b/network.config.json @@ -1,6 +1,6 @@ { - "xdcparentnet": "https://devnetstats.apothem.network/devnet", - "xdcsubnet": "https://devnetstats.apothem.network/subnet", - "xdcdevnet": "https://devnetstats.apothem.network/devnet", - "xdctestnet": "https://erpc.apothem.network/" -} + "xdcsubnet": "http://localhost:8545", + "xdcparentnet": "https://erpc.apothem.network/", + "xdcdevnet": "", + "xdctestnet": "" +} \ No newline at end of file