Skip to content

Commit 3dbfa46

Browse files
authored
Merge pull request #174 from DigiNode-Tools/develop
v0.11.1 Release
2 parents 9f05481 + 8fdea2f commit 3dbfa46

3 files changed

Lines changed: 44 additions & 20 deletions

File tree

diginode-setup.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Name: DigiNode Setup v0.11.0
3+
# Name: DigiNode Setup v0.11.1
44
#
55
# Purpose: Install and manage a DigiByte Node and DigiAsset Node via the linux command line.
66
#
@@ -16,8 +16,8 @@
1616
#
1717
# -----------------------------------------------------------------------------------------------------
1818

19-
DGNT_VER_LIVE=0.11.0
20-
# Last Updated: 2025-04-15
19+
DGNT_VER_LIVE=0.11.1
20+
# Last Updated: 2025-04-19
2121

2222
# Convert to a fixed width string of 9 characters to display in the script
2323
DGNT_VER_LIVE_FW=$(printf "%-9s" "v$DGNT_VER_LIVE")
@@ -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.)
@@ -11310,7 +11312,7 @@ query_digibyte_port() {
1131011312
# Get current listening port from [test] section of digibyte.conf, if available
1131111313
DGB2_LISTEN_PORT_TEST=$(echo "$DIGIBYTE_CONFIG_TEST" | grep ^port= | cut -d'=' -f 2)
1131211314
if [ "$DGB2_LISTEN_PORT_TEST" != "" ]; then
11313-
DGB2_LISTEN_PORT="$DGB_LISTEN_PORT_TEST"
11315+
DGB2_LISTEN_PORT="$DGB2_LISTEN_PORT_TEST"
1131411316
fi
1131511317

1131611318
fi

diginode.sh

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Name: DigiNode Dashboard v0.11.0
3+
# Name: DigiNode Dashboard v0.11.1
44
#
55
# Purpose: Monitor and manage the status of you DigiByte Node and DigiAsset Node.
66
#
@@ -47,8 +47,8 @@
4747
# The version number should be three numbers seperated by a period
4848
# Do not change this number or the mechanism for installing updates may no longer work.
4949

50-
DGNT_VER_LOCAL=0.11.0
51-
# Last Updated: 2025-04-15
50+
DGNT_VER_LOCAL=0.11.1
51+
# Last Updated: 2025-04-19
5252

5353
# Convert to a fixed width string of 9 characters to display in the script
5454
DGNT_VER_LOCAL_FW=$(printf "%-9s" "v$DGNT_VER_LOCAL")
@@ -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
@@ -4962,9 +4962,17 @@ if [ "$DGB_STATUS" = "running" ]; then # Only display if primary DigiByte Node i
49624962
if [ "$DGB_MEMPOOL_TXES" = "0" ]; then
49634963
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB_MEMPOOL_TXES Transactions" "[ Total Fee: $DGB_MEMPOOL_TOTALFEE DGB ]" ""
49644964
elif [ "$DGB_MEMPOOL_TXES" = "1" ]; then
4965-
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB_MEMPOOL_TXES Transaction ( $DGB_MEMPOOL_BYTES bytes )" "[ Total Fee: $DGB_MEMPOOL_TOTALFEE DGB ]" ""
4965+
if [ $term_width -gt 101 ]; then
4966+
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB_MEMPOOL_TXES Transaction ( $DGB_MEMPOOL_BYTES bytes )" "[ Total Fee: $DGB_MEMPOOL_TOTALFEE DGB ]" ""
4967+
else
4968+
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB_MEMPOOL_TXES Transaction" "[ Total Fee: $DGB_MEMPOOL_TOTALFEE DGB ]" ""
4969+
fi
49664970
else
4967-
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB_MEMPOOL_TXES Transactions ( $DGB_MEMPOOL_BYTES bytes )" "[ Total Fee: $DGB_MEMPOOL_TOTALFEE DGB ]" ""
4971+
if [ $term_width -gt 105 ]; then
4972+
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB_MEMPOOL_TXES Transactions ( $DGB_MEMPOOL_BYTES bytes )" "[ Total Fee: $DGB_MEMPOOL_TOTALFEE DGB ]" ""
4973+
else
4974+
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB_MEMPOOL_TXES Transactions" "[ Total Fee: $DGB_MEMPOOL_TOTALFEE DGB ]" ""
4975+
fi
49684976
fi
49694977
fi
49704978
fi
@@ -5054,7 +5062,7 @@ if [ "$DGB_DUAL_NODE" = "YES" ]; then
50545062
if [ $DGB2_CONNECTIONS -le 8 ]; then
50555063
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} ]" ""
50565064
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 ]" ""
5065+
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 ]" ""
50585066
fi
50595067
# Display the TESTNET network chain border
50605068
echo "$sm_row_02_testnet" # "║" "(TESTNET)" "╠" "═" "╬" "═" "╣"
@@ -5078,10 +5086,18 @@ if [ "$DGB_DUAL_NODE" = "YES" ]; then
50785086
echo "$sm_row_04" # "║" " " "╠" "═" "╬" "═" "╣"
50795087
if [ "$DGB2_MEMPOOL_TXES" = "0" ]; then
50805088
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB2_MEMPOOL_TXES Transactions" "[ Total Fee: $DGB2_MEMPOOL_TOTALFEE DGB ]" ""
5081-
elif [ "$DGB2_MEMPOOL_TXES" = "1" ]; then
5082-
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB2_MEMPOOL_TXES Transaction ( $DGB2_MEMPOOL_BYTES bytes )" "[ Total Fee: $DGB2_MEMPOOL_TOTALFEE DGB ]" ""
5089+
elif [ "$DGB_MEMPOOL_TXES" = "1" ]; then
5090+
if [ $term_width -gt 101 ]; then
5091+
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB2_MEMPOOL_TXES Transaction ( $DGB2_MEMPOOL_BYTES bytes )" "[ Total Fee: $DGB2_MEMPOOL_TOTALFEE DGB ]" ""
5092+
else
5093+
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB2_MEMPOOL_TXES Transaction" "[ Total Fee: $DGB2_MEMPOOL_TOTALFEE DGB ]" ""
5094+
fi
50835095
else
5084-
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB2_MEMPOOL_TXES Transactions ( $DGB2_MEMPOOL_BYTES bytes )" "[ Total Fee: $DGB2_MEMPOOL_TOTALFEE DGB ]" ""
5096+
if [ $term_width -gt 105 ]; then
5097+
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB2_MEMPOOL_TXES Transactions ( $DGB2_MEMPOOL_BYTES bytes )" "[ Total Fee: $DGB2_MEMPOOL_TOTALFEE DGB ]" ""
5098+
else
5099+
printf " ║ ║ MEMPOOL ║ " && printf "%-${col_width_dgb_mempool}s %30s %-3s\n" "$DGB2_MEMPOOL_TXES Transactions" "[ Total Fee: $DGB2_MEMPOOL_TOTALFEE DGB ]" ""
5100+
fi
50855101
fi
50865102
fi
50875103

docs/release_notes.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
## DigiNode Tools Release Notes
22

3+
DigiNode Tools v0.11.1 - 2025-04-20
4+
- Change: Default auto quit duration for the DigiNode Dashboard has been changed to 24 hours (1440 minutes).
5+
- Change: Mempool bytes are hidden on narrower terminal windows to make the display cleaner.
6+
- 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)
7+
- Fix: Right border for Connections row in dashboard now fits better.
8+
39
DigiNode Tools v0.11.0 - 2025-04-19
410
- 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/
5-
- 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.
11+
- 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.
612
- New: DigiNode Dashboard now displays the incoming and outgoing connections for your DigiByte node.
713
- 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.
814
- 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)