Skip to content

Update Balance immature category calculation to consider MTP-based maturity #2040

@evanlinjin

Description

@evanlinjin

Background

As noted in PR #2037 review, the Balance immature category calculation could be enhanced to consider transaction maturity based on both Locktime and Median Time Past (MTP).

Prerequisites

Task

Update the Balance struct's immature category calculation to properly consider transaction maturity using:

  1. Transaction locktime
  2. Median Time Past (MTP) from the CheckPoint

Implementation Notes

Acceptance Criteria

  • Balance immature category correctly identifies transactions that are locked by time
  • MTP is properly used for time-based locktime comparisons
  • Existing tests pass
  • New tests added for MTP-based maturity checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions