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: incorrect state error for shorter epoch length #1192

Merged

Conversation

Yashk767
Copy link
Contributor

Description

Transactions were missing state due to delayed state actions consuming more time than expected.

  • This was due to higher values of config parameters bufferPercent and wait.
  • And resetting of jobs/collections cache was part of main voting process which would consume some time.

Fixes
https://linear.app/interstellar-research/issue/RAZ-755
https://linear.app/interstellar-research/issue/RAZ-758

How Has This Been Tested?

Ran a staker on staging with updated config values.

cmd/config-utils.go Show resolved Hide resolved
cmd/vote.go Outdated Show resolved Hide resolved
@Yashk767
Copy link
Contributor Author

Defined buffer state sleeping time in constants.go, can check this commit 3e8d47a
@ashish10677 @rajkharvar

rajkharvar
rajkharvar previously approved these changes Feb 28, 2024
@Yashk767 Yashk767 merged commit 2fd96c8 into develop Mar 1, 2024
6 checks passed
Yashk767 added a commit to Yashk767/razor-go that referenced this pull request Mar 21, 2024
Yashk767 added a commit that referenced this pull request Mar 22, 2024
* Revert "fix: incorrect state error for shorter epoch length (#1192)"

* Revert "feat: caching jobs and collections (#1183)"

* fix: updated default config value changes considering 5 min epoch

* refactor: recorrected log according to new buffer default 0 value
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