Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix predictedClosedHeight prediction for multi-lease deployments #183

Merged
merged 1 commit into from
May 6, 2024

Conversation

Redm4x
Copy link
Contributor

@Redm4x Redm4x commented May 6, 2024

invalid input syntax for type bigint: "922.3056880849911"

There was an error when calculating predictedClosedHeight for multi-lease deployments when the owner was the one closing only one of the leases. The result of the calculation was not rounded and on top of that the logic was wrong causing the predictedClosedHeight to be earlier that reality.

I modified the calculation to match what we do when it's the provider that closes the lease.

@Redm4x Redm4x merged commit c2a28bd into main May 6, 2024
5 checks passed
@Redm4x Redm4x deleted the bugfixes/fix-predicted-closed-height-for-multi-lease branch May 6, 2024 15:16
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.

2 participants