Skip to content

Correctly implement the coinbase reward calculation #581

@tizoc

Description

@tizoc

Current implementation is a workaround because the coinbase_iter method iterates over the coinbase fees, not the coinbase transactions:

https://github.com/openmina/openmina/blob/5c88393478373b4e09ad80553f91cfe39cd9190e/mina-p2p-messages/src/v2/manual.rs#L1072-L1076

From the actual coinbase transaction the amount field can be used to obtain the real amount.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions