-
Notifications
You must be signed in to change notification settings - Fork 406
Open
Description
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
- Wait for PR #2029 to be merged first (simplifies API surface)
- PR Add median-time-past (MTP) calculation to CheckPoint #2037 should be merged (adds MTP calculation to CheckPoint)
Task
Update the Balance
struct's immature category calculation to properly consider transaction maturity using:
- Transaction locktime
- Median Time Past (MTP) from the CheckPoint
Implementation Notes
- The MTP calculation is now available in
CheckPoint
(added in PR Add median-time-past (MTP) calculation to CheckPoint #2037) - Should integrate with the simplified API from PR
CanonicalView
#2029 - Ensure proper testing with various locktime scenarios
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
oleonardolima
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status