AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 36 Indexing infrastructure

Submit raw tx (#300)

Public commit record

What the developer wrote

Authored by Evgeny

59/100 · Thin
Submit raw tx (#300)

* feat: return daemon reject reason from /submit_raw_tx
* feat: use 4xx codes for /submit_raw_tx errors
* chore: rename copyable_slice to http_response
✓ Subject identifies a change✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit changes the /submit_raw_tx endpoint so that callers now receive clearer HTTP status codes and error reasons when the Monero daemon rejects or fails to relay a transaction. It also fixes a bug where the local mempool was incorrectly updated even when the daemon did not actually relay the transaction. The change improves API correctness and reduces confusion, but it does not appear to fix a critical security vulnerability.

Recommended action

Review the new status-code behavior for API consumers and ensure monitoring/alerting treats 422 responses appropriately. No urgent security patch is indicated, but operators should confirm the mempool-only-on-relayed change matches expected wallet behavior.

Security signals we found

01

Behavioral change in error handling for transaction submission endpoint

02

Local mempool no longer updated when daemon reports relayed=false

03

HTTP status codes now distinguish client errors (400), daemon rejection (422), and accepted-but-not-relayed (200)

04

Daemon error details propagated to REST client

Risk score

Why this scored 36/100

Our methodology →
Potential impact 5/30
Exploitability 5/25
Stealth signal 5/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/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.