Commit c0a6d88
committed
consensus: log waiting-pool reward computation per cycle (diagnostic only)
Follow-up to the accounts-fingerprint / APPLY_REVERTED diagnostics. Bisecting
the retained fingerprint logs found the true origin of the 2026-07-26 bal
divergence at cycle ~89253580-81 (not 89254196, already ~700 cycles
downstream), and that asia's own SELF_PRODUCED_MISMATCH detection fires at
that exact cycle -- immediately followed by a recurring cluster of refused
self-produced applies and skipped peer-synced LSUs (prev_root mismatch) over
the following ~100 cycles, matching where the measured lag jumped from ~10 to
~28 cycles-equivalent. asia's root_counter fingerprint matches eu's exactly
throughout, ruling out a wrong-cycle bug -- this is isolated to reward
accumulation specifically.
distribute_waiting_pool_rewards_and_fee_credits now logs, on every cycle:
computed waiting_pool, eligible-worker count, per-worker share and remainder,
and short fingerprints of the eligible-waiting and producer pubkey lists
(same 4-byte SHA-256 convention as the accounts fingerprint). Also logs the
two early-return cases explicitly (zero pool, and nonzero pool with zero
eligible workers -- a reward silently forfeited that cycle). This lets a
future occurrence show directly whether the computed payout itself differs
between nodes, or whether it matches and the divergence is in the starting
balance instead. No behavior change, full test suite passes (96/96).1 parent 16eacb1 commit c0a6d88
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2506 | 2506 | | |
2507 | 2507 | | |
2508 | 2508 | | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
2509 | 2521 | | |
2510 | 2522 | | |
2511 | 2523 | | |
| |||
2525 | 2537 | | |
2526 | 2538 | | |
2527 | 2539 | | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
2528 | 2544 | | |
2529 | 2545 | | |
2530 | 2546 | | |
2531 | 2547 | | |
2532 | 2548 | | |
2533 | 2549 | | |
| 2550 | + | |
2534 | 2551 | | |
2535 | 2552 | | |
2536 | 2553 | | |
| |||
2541 | 2558 | | |
2542 | 2559 | | |
2543 | 2560 | | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
2544 | 2570 | | |
2545 | 2571 | | |
2546 | 2572 | | |
2547 | 2573 | | |
2548 | 2574 | | |
2549 | 2575 | | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
2550 | 2581 | | |
2551 | 2582 | | |
2552 | 2583 | | |
| |||
0 commit comments