Skip to content

Commit

Permalink
Switch sLV for connectedPeers, update references for 1.25.0 to 1.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Jan 28, 2021
1 parent 7b0d696 commit d3e8b8f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions docs/Build/node-cli.md
Expand Up @@ -34,11 +34,11 @@ Execute cardano-cli and cardano-node to verify output as below:

```bash
cardano-cli version
# cardano-cli 1.25.0 - linux-x86_64 - ghc-8.10
# git rev 9d62ffad185eafaabc35682355602fb5b61d33f6
# cardano-cli 1.25.1 - linux-x86_64 - ghc-8.10
# git rev 9a7331cce5e8bc0ea9c6bfa1c28773f4c5a7000f
cardano-node version
# cardano-node 1.25.0 - linux-x86_64 - ghc-8.10
# git rev 9d62ffad185eafaabc35682355602fb5b61d33f6
# cardano-node 1.25.1 - linux-x86_64 - ghc-8.10
# git rev 9a7331cce5e8bc0ea9c6bfa1c28773f4c5a7000f
```

##### Update port number or pool name for relative paths
Expand Down
2 changes: 1 addition & 1 deletion docs/Scripts/cntools-changelog.md
Expand Up @@ -8,7 +8,7 @@ and this adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [7.1.0] - 2021-01-23

##### Changed
- Remove ChainDB metrics references to align with cardano-node 1.25.0
- Remove ChainDB metrics references to align with cardano-node 1.25.1

## [7.0.2] - 2021-01-17

Expand Down
6 changes: 3 additions & 3 deletions scripts/cnode-helper-scripts/env
Expand Up @@ -105,8 +105,8 @@ else
export PATH="${CCLI_PARENT}":$PATH
fi
node_version="$(${CCLI} version | head -1 | cut -d' ' -f2)"
if ! versionCheck "1.25.0" "${node_version}"; then
echo -e "\nGuild scripts has now been upgraded to support cardano-node 1.25.0 or higher (${node_version} found).\nPlease update cardano-node (note that you should ideally update your config too) or use tagged branches for older node version.\n\n"
if ! versionCheck "1.25.1" "${node_version}"; then
echo -e "\nGuild scripts has now been upgraded to support cardano-node 1.25.1 or higher (${node_version} found).\nPlease update cardano-node (note that you should ideally update your config too) or use tagged branches for older node version.\n\n"
return 1
fi

Expand Down Expand Up @@ -166,7 +166,7 @@ elif [[ "$(jq -r .TraceChainDb ${CONFIG})" != "true" ]]; then
echo "The ${CONFIG} file suggests that you have set TraceChainDb parameter to false. Please change it to true, as it is required to extract statistics from node."
return 1
elif jq -e .options.mapBackends.\"cardano.node.BlockFetchDecision.peers\" "${CONFIG}" &>/dev/null; then
echo "It seems your ${CONFIG} file was not upgraded from version before cardano-node 1.25.0. Please download it from guild-operators repository!"
echo "It seems your ${CONFIG} file was not upgraded from version before cardano-node 1.25.1. Please download it from guild-operators repository!"
return 1
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/cnode-helper-scripts/sLiveView.sh
Expand Up @@ -44,7 +44,7 @@ while true
do
data=$(curl -s -H 'Accept: application/json' http://${ekghost}:${ekgport}/ 2>/dev/null)
remotepeers=$(netstat -an|awk "\$4 ~ /${cardanoport}/"|grep -c ESTABLISHED)
peers=$(jq '.cardano.node.BlockFetchDecision.peers.connectedPeers.int.val //0' <<< "${data}")
peers=$(jq '.cardano.node.metrics.connectedPeers.int.val //0' <<< "${data}")
blocknum=$(jq '.cardano.node.metrics.blockNum.int.val //0' <<< "${data}")
epochnum=$(jq '.cardano.node.metrics.epoch.int.val //0' <<< "${data}")
slotnum=$(jq '.cardano.node.metrics.slotInEpoch.int.val //0' <<< "${data}")
Expand Down

0 comments on commit d3e8b8f

Please sign in to comment.