Skip to content

Bugfix: submitblock: Call preciousblock on extra block submission URLs - #41

Open
luke-jr wants to merge 1 commit into
CONVOYMining:masterfrom
luke-jr:extra_preciousblock
Open

luke-jr wants to merge 1 commit into
CONVOYMining:masterfrom
luke-jr:extra_preciousblock

Conversation

@luke-jr

@luke-jr luke-jr commented Oct 11, 2026

Copy link
Copy Markdown

Previously, it would repeatedly call preciousblock on the local bitcoind after each extra URL submission

Previously, it would repeatedly call preciousblock on the local bitcoind after each extra URL submission
@luke-jr luke-jr added this to the v0.5.1 milestone Oct 11, 2026
@luke-jr
luke-jr requested a balanced review from Copilot October 11, 2026 22:11
@luke-jr luke-jr added the bug Something isn't working label Oct 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The endpoint-routing bug fix lacks regression coverage.

1 open finding
What changed in this PR

Routes preciousblock to the same Bitcoin RPC endpoint used for each block submission.

Changes:

  • Passes the target URL and block hash into preciousblock.
  • Adds const-correctness and removes an unnecessary cast.
File Description
src/​datum_submitblock.c Routes preciousblock calls to local or extra submission endpoints.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/datum_submitblock.c

// precious block!
preciousblock(tcurl, submitblock_hash);
preciousblock(tcurl, url, block_hash_hex);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants