@@ -3792,7 +3792,7 @@ if [ $TIME_DIF_10SEC -ge 10 ]; then
37923792 DGB2_STATUS=" running"
37933793
37943794 # if the primary node is running, we have just run all these checks so we don't need to do it again in the same loop
3795- if [ " $DGB_STATUS " != " running" ]; then
3795+ if [ " $DGB_STATUS " != " running" ] && [ " $DGB_STATUS " != " startingup " ] ; then
37963796
37973797 # scrape digibyte.conf
37983798 scrape_digibyte_conf
@@ -4016,8 +4016,8 @@ if [ $TIME_DIF_1MIN -ge 60 ]; then
40164016 # Update primary DigiByte Node sync progress every minute, if it is running
40174017 if [ " $DGB_STATUS " = " running" ]; then
40184018
4019- # Get current listening port
4020- DGB_LISTEN_PORT= $( $DGB_CLI getnetworkinfo 2> /dev/null | jq .localaddresses[0].port )
4019+ # query for digibyte listening port
4020+ query_digibyte_port
40214021
40224022 # Lookup sync progress value from debug.log. Use previous saved value if no value is found.
40234023 if [ " $DGB_BLOCKSYNC_PROGRESS " = " synced" ]; then
@@ -4070,8 +4070,11 @@ if [ $TIME_DIF_1MIN -ge 60 ]; then
40704070 # Update secondary DigiByte Node sync progress every minute, if it is running
40714071 if [ " $DGB2_STATUS " = " running" ] && [ " $DGB_DUAL_NODE " = " YES" ]; then
40724072
4073- # Get current listening port
4074- DGB2_LISTEN_PORT=$( $DGB_CLI -testnet getnetworkinfo 2> /dev/null | jq .localaddresses[0].port)
4073+ # if the primary node is running, we have just run all this checks so we don't need to do it again in the same loop
4074+ if [ " $DGB_STATUS " != " running" ]; then
4075+ # query for digibyte listening port
4076+ query_digibyte_port
4077+ fi
40754078
40764079 # Lookup sync progress value from debug.log. Use previous saved value if no value is found.
40774080 if [ " $DGB2_BLOCKSYNC_PROGRESS " = " synced" ]; then
0 commit comments