Skip to content

LEDGER_BUMP constant is off by one ledger from its documented derivation #17

Description

@presidojay1

const LEDGER_BUMP: u32 = 535_679; is commented as "~31 days at 5s/ledger." The exact math is 31 * 24 * 3600 / 5 = 535_680, one more than the value actually used. The constant and its explanatory comment disagree by a single ledger.

Suggested fix: Update the constant to 535_680 to exactly match the stated 31-day/5s-per-ledger derivation.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions