Skip to content

cherry-pick: JD debug logging from #162 (fixes #167) - #279

Open
ANAMASGARD wants to merge 3 commits into
dmnd-pool:masterfrom
ANAMASGARD:cherry-pick/167-debug-logging
Open

cherry-pick: JD debug logging from #162 (fixes #167)#279
ANAMASGARD wants to merge 3 commits into
dmnd-pool:masterfrom
ANAMASGARD:cherry-pick/167-debug-logging

Conversation

@ANAMASGARD

Copy link
Copy Markdown

Summary

Cherry-picks the three logging commits from closed #162 as requested in #167.

Commits included

  • e853948 — Log ProvideMissingTransactions responses
  • 221592b — Log template transaction counts
  • 3a8346f — Decode "Job is not verified" reason into readable logs

Commits excluded (per @jbesraa feedback on #162)

  • 7916d6c — position validation loop (latency concern)
  • 0ce6d5a — requested txid logging (feature flag concern)

What this does

  • Adds debug! when sending ProvideMissingTransactionsSuccess (request_id + tx count)
  • Adds debug! when receiving template transaction lists (template_id + tx_count)
  • Decodes DeclareMiningJobError fields as UTF-8 or hex via ErrorDetails helper
  • Structured error! logging for "Job is not verified" and DeclareMiningJobError

What this does NOT do

  • Does not fix the underlying intermittent JD template bug
  • Does not add validation loops or extra latency to the missing-tx flow

Conflict notes

221592b and 3a8346f were manually merged against current master (prioritized-tx logic in on_new_template was preserved).

Test plan

  • cargo build — passed
  • cargo test — 86 passed, 0 failed (79 lib + 6 integration + 1 library_init)

Screenshots attached.
image

Fixes #167
Cherry-picked from #162

Sjors added 3 commits June 20, 2026 19:59
Assisted-by: GitHub Copilot
Assisted-by: OpenAI GPT-5.1-Codex
Assisted-by: GitHub Copilot
Assisted-by: OpenAI GPT-5.1-Codex
Decode the reason so the log is human readable.

Assisted-by: GitHub Copilot
Assisted-by: OpenAI GPT-5.1-Codex
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.

Cherry pick useful commits from #162

2 participants