AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 20 Bitcoin

Merge bitcoin/bitcoin#36081: rpc: add bestblockhash to getmininginfo

Public commit record

What the developer wrote

Authored by merge-script

81/100 · Strong
Merge bitcoin/bitcoin#36081: rpc: add bestblockhash to getmininginfo

74e1cd38f2a381977b5e46fab6bb15ca17efd349 rpc: add bestblockhash to getmininginfo (Jakub Trnka)

Pull request description:

I'm working with pool side mining software.

I noticed there is a race condition between obtaining bestblockhash and next block nbits.
The chaintips may change.

I thought it might be useful to include bestblockhash in `getmininginfo` rpc response.

ACKs for top commit:
Sjors:
re-ACK 74e1cd38f2a381977b5e46fab6bb15ca17efd349 (just the release note file rename)
ismaelsadeeq:
Code review ACK 74e1cd38f2a381977b5e46fab6bb15ca17efd349
pablomartin4btc:
ACK 74e1cd38f2a381977b5e46fab6bb15ca17efd349
sedited:
ACK 74e1cd38f2a381977b5e46fab6bb15ca17efd349

Tree-SHA512: 9b2e897e03e3405eeb8855041c14efa9929233685218c015e74569328d0fd6bba8ba41f36d12d970041780fd7d24619437afb19e723a69c8e432a4015e31007a
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit adds a new 'bestblockhash' field to the getmininginfo RPC response in Bitcoin Core. It is a feature enhancement, not a security fix. The change lets mining software read the current chain tip hash and the next block's difficulty bits in a single API call, avoiding a harmless race where the chain tip might change between two separate calls. There is no vulnerability being patched.

Recommended action

No security action required. Treat as a normal feature/API improvement.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 20/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 5/15
Confidence 10/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.