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

schemas: make `direction` in `listpeerchannels` a u32

Public commit record

What the developer wrote

Authored by daywalker90

65/100 · Adequate
schemas: make `direction` in `listpeerchannels` a u32

everywhere else it's a u32 aswell, an `integer` makes it a i64
but possible values are only 0 and 1

Changelog-None
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit is a minor API consistency fix. It changes the data type of the `direction` field returned by the `listpeerchannels` command from a signed 64-bit integer (`integer`/`sint64`) to an unsigned 32-bit integer (`u32`/`uint32`). The field only ever holds the values 0 or 1, so this simply aligns it with how the same field is represented in other parts of the API. It is not a security patch and does not fix a vulnerability.

Recommended action

No security action required. Treat as a normal API consistency / code-generation update. Review downstream consumers that may have assumed a signed 64-bit type for `direction` in `listpeerchannels` responses, as the narrower unsigned type could affect strict type checking in client code.

Security signals we found

01

No security-relevant signals detected in the diff.

02

Change is purely a type narrowing / API consistency fix.

03

No input validation, memory safety, or cryptographic changes present.

Risk score

Why this scored 19/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 3/15
Confidence 8/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.