Skip to content

fix: handle negative block depth in ApproximateBestBlockDepth and add tests#87

Draft
l0rinc wants to merge 1 commit intomasterfrom
detached470
Draft

fix: handle negative block depth in ApproximateBestBlockDepth and add tests#87
l0rinc wants to merge 1 commit intomasterfrom
detached470

Conversation

@l0rinc
Copy link
Copy Markdown
Owner

@l0rinc l0rinc commented Jan 4, 2026

Prevent negative depth values by returning 0 when m_best_block_time is in the future. Added unit tests to validate behavior with future and past block times.

…dd tests

Prevent negative depth values by returning 0 when `m_best_block_time` is in the future. Added unit tests to validate behavior with future and past block times.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant