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: skip cache commit when refill cache on node restart #52

Merged

Conversation

leonz789
Copy link
Contributor

@leonz789 leonz789 commented May 9, 2024

Description

when a node restart, it will refill the cache from persistent state. During this process, the update flag will be set in cache which cause the commit to update state by mistake(there's actually no update like validatorSet change).

Changes

Notable changes:

  • add SkipCommit for cache, used to skip the real commit by setting the update flag to false

Issue #51


Closes #XXX

x/oracle/module.go Dismissed Show dismissed Hide dismissed
@cloud8little
Copy link
Contributor

Test passed with commit ad78f76.
Consensus Loss problem was well solved, and get back to work as expected.

x/oracle/module.go Outdated Show resolved Hide resolved
@mikebraver
Copy link
Contributor

Please fix golang lint action error

@cloud8little cloud8little merged commit 7e9683d into ExocoreNetwork:develop May 11, 2024
16 checks passed
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.

4 participants