Skip to content

Commit

Permalink
gsbn = 1 not 0
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Aug 7, 2024
1 parent 019b143 commit 2f3e5fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions cicd/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions network.config.json
Original file line number Diff line number Diff line change
@@ -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": ""
}

0 comments on commit 2f3e5fb

Please sign in to comment.