Skip to content

v2.9.0 - DD economy line and label-first summary titles

Choose a tag to compare

@BaumerCrypto BaumerCrypto released this 26 Jul 05:21
Immutable release. Only release title and notes can be modified.
ccf9fdb

Closes #40, #41, and #42. All three platforms. Deployed and verified on live mainnet
and testnet26 instances before publishing.

DigiDollar economy line on the health summary (#40)

Requested in the DigiDollar Gitter room. The health summary card gains one line,
directly under Price:

ℹ️  DD economy: $41,932.07 DD minted, 41,515,898 DGB locked (332% collateralized)

Identical wording to the Gitter network status bot, so the two tools share a
vocabulary.

Reads getdigidollarstats. Note that total_dd_supply is denominated in cents,
so 4193207 renders as $41,932.07. The field map was verified live on both v9.26.4
and v9.26.5, so the BIP90 burial did not move these fields the way it moved .since
in the deployment RPCs, and the output was cross-checked against digibyte.io/ddstats
and nodes.bi-co.net.

Information only. It never fires an alert, never counts toward the warning or
issue totals, and never changes the card colour. An all-green card stays all-green.

Summary card only, never the 5-minute checks. Those post single-purpose alert
cards with no status block, and a network-wide total under a "Node Down" card is
noise at exactly the moment you want signal. That also keeps the RPC at two calls a
day per instance rather than 288. Measured at 11 ms and roughly 1 to 2 debug.log
lines per call on a chain with 23.9 million blocks, so no interval gate is needed.

Every failure path omits the line rather than guessing: a missing RPC, a parse
failure, a renamed field, or a non-numeric value all render nothing, and a chain
where DigiDollar has not activated shows a standby line instead.

New config: DD_ECONOMY_ENABLED, default yes.

Idea credit to Bastian for the original bot-side line.

Network label now leads the summary title (#41)

Operators running two instances reported they could not tell a testnet card from a
mainnet card in the same Discord channel. Two healthy cards opened with an identical
24-character run and differed by one word buried mid-title.

The cause was a gap left over from v2.5.3: that release added the label to alert
titles and email subjects through their two send chokepoints, but the health summary
builds its title separately and was missed.

Before:  ✅ All Systems Healthy — Testnet26 Health Summary
After:   Testnet26 Health Summary — ✅ All Systems Healthy

Status moves to the tail, where the embed border colour already carries it.

New config: NETWORK_EMOJI, empty by default so nothing changes unless you set it.
It prefixes the label everywhere, including email subjects and the watch mode banner
on the ports. Marking only one instance is usually enough: leave production unset so
its cards look exactly as they always have, and flag the test one.

Internally the label and emoji are combined once into a single derived value at
config load, which is what prevents the emoji doubling on the email path.

Dual-instance CLI guidance corrected (#42)

Worth reading if you run both chains on one box.

Bare digibyte-cli is correct only on a mainnet-only machine. On a dual-instance
setup it reads ~/.digibyte/digibyte.conf, which is your testnet conf and carries
testnet=1, so the client connects to the testnet RPC port while your mainnet
daemon runs with its own -conf= that the bare client never reads.

Nothing errors. You get a health summary titled "Mainnet" reporting testnet block
heights, testnet quorum counts, and testnet prices. The only visible tell is the
chain name on the Chain line, (test) sitting a few rows under a Mainnet title.

Pin the chain explicitly on both instances:

# testnet
CLI="digibyte-cli -testnet"

# mainnet
CLI="digibyte-cli -conf=$HOME/.digibyte/mainnet.conf"

Windows has the same trap with $CLI_ARGS = @(). Corrected in all three config
templates, in both places it appeared, and in the README configuration table.

Upgrading

Drop-in replacement, no config changes required. Both new settings have defaults
that preserve existing behaviour.

cp ~/oracle-monitor.sh ~/oracle-monitor.sh.bak-$(date +%Y%m%d-%H%M%S)
# download oracle-monitor.sh, verify the hash below, then:
chmod 775 ~/oracle-monitor.sh.new
bash -n ~/oracle-monitor.sh.new
mv ~/oracle-monitor.sh.new ~/oracle-monitor.sh

mv rather than copying over the live file, so a cron run firing mid-swap gets
either the old file or the new one and never a half-written one.

SHA256

Verify before you run anything.

9ed03990dc1bf6c3a30f1997d96de9e18c80ab60b82ca9f6b4ca19e094260228  oracle-monitor.sh
166a6ce2e7132e729cb5b022c9258671cc71059542bafb866a15871e86f2aee8  oracle-monitor.ps1
cf4f9cce9118412171ce8266ffd59d4934c025b7f9bdade44b1c77fa26d6d186  oracle-monitor-macos.sh
7337d8e4cbf936c3cbd0da6e0f94336122888716e5a4628185417329081dc9df  config.template
d06909dfdfdc4ff60eb20bf553ecfc13fc9b73cda64dd6a24cf4a642f2d131eb  config.template.ps1
880acddb543094bf127537163c9dfb0cfbb10663c046e1a65534593967b84410  config-macos.template

Both .ps1 files ship UTF-8 with BOM. If your copy does not start with the bytes
EF BB BF, the emoji in your Discord cards will render as mojibake.