Skip to content

Demote the per-submit SUBMIT CHECK dump from INFO to DEBUG - #71

Merged
rsantacroce merged 1 commit into
LayerTwo-Labs:mainfrom
Wired4ncer:up/submit-check-debug
Sep 1, 2026
Merged

Demote the per-submit SUBMIT CHECK dump from INFO to DEBUG#71
rsantacroce merged 1 commit into
LayerTwo-Labs:mainfrom
Wired4ncer:up/submit-check-debug

Conversation

@Wired4ncer

Copy link
Copy Markdown
Contributor

Every share submission logs a multi-line SUBMIT CHECK block at INFO. At share rate that is the dominant thing in the journal, and it buries the lines an operator actually needs — authorize, vardiff retargets, block candidates, rejects.

It is genuinely useful when diagnosing a single miner, so this demotes it to DEBUG rather than removing it. Same information, available when asked for.

No behaviour change beyond log level. Full suite green on a clean checkout of main.

Vardiff clamps the share target to the network target, so at difficulty 1
every miner submits at its full hash rate. At ~287 TH/s that is roughly
66,800 submits a second, and this line emits five journal lines for each.

journald's default rate limit is 10,000 messages per 30 s (~333/s). Two
orders of magnitude over it means journald starts dropping, and the pool's
own INFO-level fault signals go down with the noise: 'settled block',
'had no payout plan', 'no shares in the window' and 'window has no payable
addresses' are all LOG_INFO. The monitoring would have read green while
blind, in the one window it exists for.

Demoting it also removes the work: two of the three hex conversions exist
only for this line and are now skipped with it. sent_hash_hex stays
unconditional because the share record below needs it.

Adds log_enabled() so a caller can skip log-only work.

All 8 suites pass (test_stratum 134).
@rsantacroce
rsantacroce merged commit 28992a4 into LayerTwo-Labs:main Sep 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants