Commit bf27f31
committed
consensus: log compensation_entries summary per apply (diagnostic only)
Follow-up to the waiting-pool reward instrumentation (c0a6d88), which just
proved that path is a permanent no-op in the current worker configuration
(all 3 registered workers are always the 3 rotating producers, so the
waiting pool is always empty and its balance-mutation loop never runs, on
any node, identically). That rules it out as the source of the 2026-07-26
bal-category divergence and leaves lsu.compensation_entries -- simple,
deterministic, part of the hashed LSU -- as the only other thing that
mutates bal: on an empty-tx-batch cycle.
log_compensation_entries_summary() logs entry count, applied (nonzero)
count, total amount credited, and a short fingerprint of the entries
themselves, from both apply_lsu_to_storage_locked and
apply_lsu_to_storage_without_root_check. If this logs identically across
nodes for a cycle but balances still diverge afterward, that proves the
starting balance already differed (deficit from an earlier cycle); if the
logged values themselves differ, that's the bug. No behavior change, full
test suite passes (96/96).1 parent c0a6d88 commit bf27f31
1 file changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1816 | 1816 | | |
1817 | 1817 | | |
1818 | 1818 | | |
| 1819 | + | |
1819 | 1820 | | |
1820 | 1821 | | |
1821 | 1822 | | |
| |||
2518 | 2519 | | |
2519 | 2520 | | |
2520 | 2521 | | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
2521 | 2558 | | |
2522 | 2559 | | |
2523 | 2560 | | |
| |||
3559 | 3596 | | |
3560 | 3597 | | |
3561 | 3598 | | |
| 3599 | + | |
3562 | 3600 | | |
3563 | 3601 | | |
3564 | 3602 | | |
| |||
0 commit comments