Skip to content

Conversation

@thomash-acinq
Copy link
Member

The balance estimates are sometimes outside the range [0, 1] which should never happen. We add some logs to help debug it. We also stop calling TimestampSecond.now() multiple times during the computation and reuse the same value which may fix the issue.

The balance estimates are sometimes outside the range [0, 1] which should never happen. We add some logs to help debug it.
We also stop calling `TimestampSecond.now()` multiple times during the computation and reuse the same value which may fix the issue.
@pm47 pm47 self-requested a review November 12, 2024 14:46
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see an obvious reason why we'd see values outside of [0;1], those logs will be helpful to troubleshoot, feel free to merge this!

@thomash-acinq thomash-acinq merged commit 51defce into master Nov 20, 2024
1 check passed
@thomash-acinq thomash-acinq deleted the debug-balance-estimate branch November 20, 2024 11:07
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.

3 participants