You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update Balance immature category calculation to consider MTP-based maturity #2040
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)
Activity
evanlinjin commentedon Sep 19, 2025
Handling missing blocks/block-times
For calculating MTP-based maturity when some block timestamps are missing, implement a worst-case MTP approach:
Strategy
Mature: Locktime < worst_case_mtp (definitely spendable)Unknown: Locktime >= worst_case_mtp (might be spendable with real timestamps)Immature: Locktime > current time (definitely not spendable yet)Implementation sketch
Why use 0 for missing timestamps?
Return value
Always returns a value (never
None):This approach maximizes spendable balance while guaranteeing we never incorrectly mark time-locked funds as mature.
asmit27rai commentedon Feb 1, 2026
@evanlinjin Should i take this issue ?
yanfsb commentedon Apr 11, 2026
Hey @asmit27rai ! Are you still working on this? If not, I'm considering getting it.
github-actions commentedon Oct 12, 2026
This issue has been inactive for 180 days and labeled stale, comment to keep it open. It will be closed in 30 days if there is no activity.
github-actions commentedon Nov 16, 2026
Closed after 210 days of inactivity. Feel free to reopen if this is still relevant.