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(db/trans-cache): avoid recovering a wrong cached data #5505

Merged

Conversation

halibobo1205
Copy link
Contributor

Avoid downgrading and then upgrading to use the wrong data for cache recovery

For the following cases :

  1. start node with 4.7.3
  2. stop node with kill -15 : dump trans-cache data on header x
  3. start node with 4.7.2
  4. stop node on header y(y>x)
  5. start node with 4.7.3: recover trans-cache data with header x, DupTransactionException will possibly occur.

How to fix

Check header when recovering cached data.

@halibobo1205 halibobo1205 merged commit 703a866 into tronprotocol:release_v4.7.3 Sep 20, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants