Repository navigation
v2.9.0 - DD economy line and label-first summary titles #44
BaumerCrypto
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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:
Identical wording to the Gitter network status bot, so the two tools share a
vocabulary.
Reads
getdigidollarstats. Note thattotal_dd_supplyis 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
.sincein 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, defaultyes.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.
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-cliis correct only on a mainnet-only machine. On a dual-instancesetup it reads
~/.digibyte/digibyte.conf, which is your testnet conf and carriestestnet=1, so the client connects to the testnet RPC port while your mainnetdaemon 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:
Windows has the same trap with
$CLI_ARGS = @(). Corrected in all three configtemplates, 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.
mvrather than copying over the live file, so a cron run firing mid-swap getseither the old file or the new one and never a half-written one.
SHA256
Verify before you run anything.
Both
.ps1files ship UTF-8 with BOM. If your copy does not start with the bytesEF BB BF, the emoji in your Discord cards will render as mojibake.This discussion was created from the release v2.9.0 - DD economy line and label-first summary titles.
All reactions