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

current_period isn't recalculated upon restart #1215

Closed
mike76-dev opened this issue May 6, 2024 · 1 comment · Fixed by #1216
Closed

current_period isn't recalculated upon restart #1215

mike76-dev opened this issue May 6, 2024 · 1 comment · Fixed by #1216
Labels
bug Something isn't working

Comments

@mike76-dev
Copy link
Contributor

Current Behavior

After not having started renterd for a few months, I found out that the contracts are not formed because "the end height is in the past". After digging into the issue, it turned out that current_period in the autopilots table still contained the value from the past, when I last started renterd.

Expected Behavior

Current Period should be recalculated every time renterd starts.

Steps to Reproduce

No response

Version

Latest master merged into a custom fork

What operating system did the problem occur on (e.g. Ubuntu 22.04, macOS 12.0, Windows 11)?

Ubuntu 22.04

Autopilot Config

Not relevant

Bus Config

Not relevant

Contract Set Contracts

Not relevant

Anything else?

No response

@mike76-dev mike76-dev added the bug Something isn't working label May 6, 2024
@ChrisSchinnerl
Copy link
Member

In theory it should update but you are right it would not happen immediately upon being synced again. Instead it would probably update the current period by 1 period every 30 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants