Skip to content

Commit 565eb5b

Browse files
committed
change default auto-quit duration, fix connections right border
1 parent 1ee8f42 commit 565eb5b

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

diginode-setup.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ if [ ! -f "$DGNT_SETTINGS_FILE" ]; then
509509

510510
# OTHER SETTINGS
511511
DGB_MAX_CONNECTIONS=150
512-
SM_AUTO_QUIT=20
512+
SM_AUTO_QUIT=1440
513513
SM_DISPLAY_BALANCE=YES
514514
SM_DISPLAY_MAINNET_MEMPOOL=YES
515515
SM_DISPLAY_TESTNET_MEMPOOL=YES
@@ -689,10 +689,12 @@ DGB_DATA_LOCATION=$DGB_DATA_LOCATION
689689
# (Note: If a digibyte.conf file already exists that sets the maxconnections already, the value here will be ignored)
690690
DGB_MAX_CONNECTIONS=$DGB_MAX_CONNECTIONS
691691

692-
# Stop the DigiNode Dashboard automatically if it is left running. The default is 20 minutes.
692+
# Stop the DigiNode Dashboard automatically if it is left running. The default is 1440 minutes.
693693
# To avoid putting unnecessary strain on your device, it is inadvisable to run DigiNode Dashboard for
694694
# long periods. Enter the number of minutes before it exits automatically, or set to 0 to run indefinitely.
695-
# e.g. To stop after 1 hour enter: 60
695+
# Note: Running indefinitely is nor reccomended if you frequently lose connection to your node since the
696+
# old dashboards will be left running in the background. It is always reccomnded to set a fixed limit.
697+
# e.g. To stop after 24 hours enter: 1440
696698
SM_AUTO_QUIT=$SM_AUTO_QUIT
697699

698700
# Choose whether to display the current wallet balance in the DigiNode Dashboard. (Specify either YES or NO.)

diginode.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3555,7 +3555,7 @@ if [ "$DGB2_STATUS" = "running" ] && [ "$DGB_DUAL_NODE" = "YES" ]; then
35553555
DGB2_CONNECTIONS_MSG="Warning: Low Connections!"
35563556
fi
35573557
if [ $DGB2_CONNECTIONS -ge 9 ]; then
3558-
DGB2_CONNECTIONS_MSG="Maximum: $DGB2_MAXCONNECTIONS"
3558+
DGB2_CONNECTIONS_MSG="Max: $DGB2_MAXCONNECTIONS"
35593559
fi
35603560

35613561
# Lookup incoming and outgoing connections
@@ -4566,7 +4566,7 @@ if [ "$terminal_resized" = "yes" ] || [ "$STARTUP_LOOP" = true ]; then
45664566

45674567
# Calculate the column widths based on terminal width
45684568
col_width_dgb_connections_low=$((term_width - 38 - 29 - 3 - 2))
4569-
col_width_dgb_connections_max=$((term_width - 38 - 29 - 3 - 2))
4569+
col_width_dgb_connections_max=$((term_width - 38 - 13 - 3 - 2))
45704570
col_width_dgb_blockheight_long=$((term_width - 39 - 32 - 3 - 2))
45714571
col_width_dgb_blockheight=$((term_width - 38 - 19 - 3 - 2))
45724572
col_width_dgb_mempool=$((term_width - 38 - 30 - 3 - 2))
@@ -4921,7 +4921,7 @@ if [ "$DGB_STATUS" = "running" ]; then # Only display if primary DigiByte Node i
49214921
if [ $DGB_CONNECTIONS -le 8 ]; then
49224922
printf " ║ DIGIBYTE NODE ║ CONNECTIONS ║ " && printf "%-${col_width_dgb_connections_low}s %29s %-3s\n" "$DGB_CONNECTIONS Peers ( In: $DGB_PEERS_IN | Out: $DGB_PEERS_OUT )" "[ ${txtbred}$DGB_CONNECTIONS_MSG${txtrst} ]" ""
49234923
else
4924-
printf " ║ DIGIBYTE NODE ║ CONNECTIONS ║ " && printf "%-${col_width_dgb_connections_max}s %29s %-3s\n" "$DGB_CONNECTIONS Peers ( In: $DGB_PEERS_IN | Out: $DGB_PEERS_OUT )" "[ $DGB_CONNECTIONS_MSG ]" ""
4924+
printf " ║ DIGIBYTE NODE ║ CONNECTIONS ║ " && printf "%-${col_width_dgb_connections_max}s %13s %-3s\n" "$DGB_CONNECTIONS Peers ( In: $DGB_PEERS_IN | Out: $DGB_PEERS_OUT )" "[ $DGB_CONNECTIONS_MSG ]" ""
49254925
fi
49264926
# Choose the correct network chain border
49274927
if [ "$dgb_chain_caps" = "MAINNET" ]; then
@@ -5054,7 +5054,7 @@ if [ "$DGB_DUAL_NODE" = "YES" ]; then
50545054
if [ $DGB2_CONNECTIONS -le 8 ]; then
50555055
printf " ║ DIGIBYTE NODE ║ CONNECTIONS ║ " && printf "%-${col_width_dgb_connections_low}s %29s %-3s\n" "$DGB2_CONNECTIONS Nodes ( In: $DGB2_PEERS_IN | Out: $DGB2_PEERS_OUT )" "[ ${txtbred}$DGB2_CONNECTIONS_MSG${txtrst} ]" ""
50565056
else
5057-
printf " ║ DIGIBYTE NODE ║ CONNECTIONS ║ " && printf "%-${col_width_dgb_connections_max}s %29s %-3s\n" "$DGB2_CONNECTIONS Nodes ( In: $DGB2_PEERS_IN | Out: $DGB2_PEERS_OUT )" "[ $DGB2_CONNECTIONS_MSG ]" ""
5057+
printf " ║ DIGIBYTE NODE ║ CONNECTIONS ║ " && printf "%-${col_width_dgb_connections_max}s %13s %-3s\n" "$DGB2_CONNECTIONS Nodes ( In: $DGB2_PEERS_IN | Out: $DGB2_PEERS_OUT )" "[ $DGB2_CONNECTIONS_MSG ]" ""
50585058
fi
50595059
# Display the TESTNET network chain border
50605060
echo "$sm_row_02_testnet" # "║" "(TESTNET)" "╠" "═" "╬" "═" "╣"

docs/release_notes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
## DigiNode Tools Release Notes
22

33
DigiNode Tools v0.11.1 - 2025-04-xx
4-
- Coming Soon
4+
- Change: Default auto quit duration for the DigiNode Dashboard has been changed to 24 hours (1440 minutes).
5+
- Fix: When running a Dual Node, the Testnet listening port now displays correctly in the Dashboard while the node is starting up. (It was blank before)
6+
- Fix: Right border for Connections row in dashboard now fits better.
57

68
DigiNode Tools v0.11.0 - 2025-04-19
79
- New: DigiNode Dashboard now has a brand new port tester built for DigiNode Tools. It can test nodes at IPv4, IPv6 and onion addresses. The port tester is also available for anyone to use at: https://diginode.tools/digibyte-port-tester/
8-
- New: DigiNode Dashboard now optionally displays the mempool data for each node. By default, Mempool data is displayed whenever transactions enter the mempool and is hidden if there are no transactions seen for 30 seconds. This way mempool data is only shown when there are transactions occurring, which helps keep the testnet mempool data hidden when the network is not being used. You can enable/disable displaying the mempool data by editing the variables SM_DISPLAY_MAINNET_MEMPOOL and SM_DISPLAY_TESTNET_MEMPOOL in diginode.settings. (Enter ```diginode --settings```). SM_MEMPOOL_DISPLAY_TIMEOUT can be used to set the timeout duration.
10+
- New: DigiNode Dashboard now optionally displays the mempool data for each node. By default, Mempool data is displayed whenever transactions enter the mempool and is hidden if there are no transactions seen for 30 seconds. This way mempool data is shown only when there is mempool data to show. You can enable/disable displaying the mempool data by editing the variables SM_DISPLAY_MAINNET_MEMPOOL and SM_DISPLAY_TESTNET_MEMPOOL in diginode.settings. (Enter ```diginode --settings```). SM_MEMPOOL_DISPLAY_TIMEOUT can be used to set the timeout duration.
911
- New: DigiNode Dashboard now displays the incoming and outgoing connections for your DigiByte node.
1012
- Change: peers.dat is now deleted each time you switch between running a Tor node and a clearnet node. This ensures the node starts with a fresh list of peers to connect to.
1113
- Change: Add message to Dashboard about DigiAsset Core support. Adding support for DigiAsset Core is not possible at this time due to a bug in DigiByte Core v8.22.x.

0 commit comments

Comments
 (0)