Commit c605ef0
committed
dgb: delegate heartbeat_log diagnostics arithmetic to SSOT headers
Rewire the three open-coded arithmetic sites in NodeImpl::heartbeat_log
onto the already-landed fenced SSOTs, eliminating the drift risk the
SSOT headers were lifted to close (#389 pool_efficiency, #390 etb):
- stale_prop -> dgb::compute_stale_prop()
- real_pool_hs -> dgb::compute_real_pool_hashrate()
- etb_secs -> dgb::compute_expected_time_to_block()
Byte-identical by construction: each call reproduces the exact inline
expression (same guards, same div-by-~0 floor at stale_prop>=0.999, same
1e18 average-attempts overflow sentinel). Operator-facing diagnostics
only; consensus-neutral, no value semantics changed. Math is already
pinned against the p2pool-dgb-scrypt oracle by the #389/#390 SSOT KATs.
Per-coin isolation: src/impl/dgb/ only.1 parent 31937e8 commit c605ef0
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
1718 | 1720 | | |
1719 | 1721 | | |
1720 | 1722 | | |
1721 | | - | |
1722 | | - | |
| 1723 | + | |
1723 | 1724 | | |
1724 | 1725 | | |
1725 | 1726 | | |
| |||
1763 | 1764 | | |
1764 | 1765 | | |
1765 | 1766 | | |
1766 | | - | |
1767 | | - | |
| 1767 | + | |
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
| |||
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | | - | |
1779 | | - | |
1780 | | - | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1781 | 1782 | | |
1782 | 1783 | | |
1783 | 1784 | | |
| |||
0 commit comments