Skip to content

Use dismad's suggested better RPC error#301

Merged
p0mvn merged 1 commit into
mainfrom
dev/dismad_comment_update
Jul 20, 2026
Merged

Use dismad's suggested better RPC error#301
p0mvn merged 1 commit into
mainfrom
dev/dismad_comment_update

Conversation

@ValarDragon

@ValarDragon ValarDragon commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Bring in Dismad's error message improvement from upstream


Note

Low Risk
Message-only change for an existing error path; no logic, codes, or API shape changes.

Overview
Updates the getrawtransaction RPC error when a txid is missing from both the mempool and chain state.

The user-facing message changes from "No such mempool or main chain transaction" to "Transaction not found in mempool or best chain", aligning with an upstream wording improvement. The legacy error code (-5, InvalidAddressOrKey) is unchanged.

Snapshot tests for unknown txids on mainnet and testnet are updated to expect the new message.

Reviewed by Cursor Bugbot for commit c019787. Bugbot is set up for automated code reviews on this repo. Configure here.

@v12-auditor

v12-auditor Bot commented Jul 20, 2026

Copy link
Copy Markdown

Note

Complete: Audit complete. V12 did not find any issues that need review.

Open the full results here.

Analyzed one file, diff 8565b20...c019787.

@cursor

cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_fdd7f64a-9dd1-410e-9084-5c54fa69ef75)

@dismad

dismad commented Jul 20, 2026

Copy link
Copy Markdown

Thank you!

@p0mvn
p0mvn merged commit f84feca into main Jul 20, 2026
49 checks passed
@p0mvn
p0mvn deleted the dev/dismad_comment_update branch July 20, 2026 19:08
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.

5 participants