Skip to content

Correct ledger-header fee units and document its extension member #2907

Closed

Description

@kalepail

Note

Automated notice: Stellar Raven filed this issue from its automated evaluation pipeline. The issue includes evidence and a public source record. Please verify the live surface before you act.

Finding

The Ledgers page says the ledger-header fee pool uses lumens rather than stroops.
The XDR field feePool holds an integer amount in stroops.
The page's ledger-header field list also omits the direct ext member.
Readers can apply the wrong conversion or construct an incomplete field list.

The adjacent totalCoins field also holds stroops, although the page describes a total number of lumens.
The page should distinguish stored units from amounts displayed in XLM.

Evidence

On 2026-10-09, the published fee-pool section explicitly specifies lumens.
The source page has the same claim.
Its field list ends at Skip list without describing ext.

The XDR definition defines feePool, totalCoins, and the direct ext union.
The union has discriminants 0 and 1.
The 1 arm holds LedgerHeaderExtensionV1.
The totalCoins comment explicitly specifies stroops and 10,000,000 stroops per XLM.

Core fee processing subtracts the integer fee from account balance.
It adds that same integer to header.current().feePool without a lumen conversion.

A public Horizon ledger read returned ledger 64853885.
Its XDR feePool was 108008397804790.
Its displayed fee_pool was 10800839.7804790 XLM.
Its XDR totalCoins was 1054439020873472865.
Its displayed total_coins was 105443902087.3472865 XLM.

Both pairs use the 10,000,000 conversion factor.
The decoded header also has ext with discriminant 0.

The source scan found this explicit denomination error only on the ledger page.
The separate lumen-supply page describes displayed Dashboard and Horizon values.
Those displayed values use XLM and do not contradict the raw XDR units.
The observed source commits do not identify when the error began.

Additional recorded evidence:

Recommendation

State that raw feePool and totalCoins use stroops.
Explain the conversion to XLM for displayed supply values.
State the raw baseReserve units with the adjacent reserve description.

Add the direct ext union to the field list.
Describe its discriminant and the versioned extension payload.
Keep transaction-set hash, close time, and upgrades under the nested StellarValue scope.
The current SCP-value paragraph already explains that nesting.

Source Record

Raven recorded this finding as sd-056 (stellar-docs, discovered 2026-10-09).

Public source record: improvements/stellar-docs/sd-056-ledger-header-fee-units-and-extension.md

Immutable source snapshot: 6f2ddd72b3a2

Resolution Handoff

When you deploy a fix, link the resolving issue or pull request to the source record.
Then notify Raven through:

https://github.com/stellar-experimental/stellar-raven/issues/new?template=upstream-improvement-ready.yml&title=%5Bupstream-ready%5D%20sd-056%3A%20

Include the finding ID and the resolving issue or pull request.
Include the deployed version or timestamp. Include the smallest live recheck.
Raven verifies the live surface before it sets the finding to fixed-upstream.
An issue closure or merged pull request does not prove the fix.
A separate reviewer repeats the live check before Raven retires the active finding.
Raven keeps a commit-pinned snapshot when one is available.

Activity

  1. added
    raven
    on Oct 9, 2026
  2. stellar-doxie commented on Oct 30, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from the Stellar Triage Bot.

    Working this because it is a Raven-filed issue (label raven).

    I am checking the ledger-header units and the ext field against the XDR. I will post the outcome here.

  3. stellar-doxie commented on Oct 30, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from the Stellar Triage Bot.

    Working this because it is a Raven-filed issue (label raven).

    An open PR already fixes this: #2930 ("Closes #2907"). I will not open a second PR.

  4. stellar-doxie commented on Nov 2, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from the Stellar Triage Bot.

    Following up because #2930 closed this issue.

  5. kalepail commented on Nov 2, 2026

    @kalepail
    ContributorAuthor

    Raven independently rechecked sd-056 on 2026-11-02 and confirmed the original trigger is resolved live.

    Live recheck: 2026-11-02T21:02:06Z https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/ledgers: no 'denominated in lumens'; Fee pool and Total coins state stroops; Base reserve 'Calculated in stroops.'; new Extension section names discriminants 0 and 1 and LedgerHeaderExtensionV1

    The active finding is being retired under the ephemeral improvements lifecycle. Immutable source snapshot: https://github.com/stellar-experimental/stellar-raven/blob/4274b6da355a62eb371a95f8082df3ed57b605bd/improvements/stellar-docs/sd-056-ledger-header-fee-units-and-extension.md

  6. added a commit that references this issue on Nov 3, 2026
    378944a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    raven

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions