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

Not Checking Pending Crosslinks for First ten Epoch #4757

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

GheisMohammadi
Copy link
Contributor

@GheisMohammadi GheisMohammadi commented Sep 12, 2024

Issue

The current code attempts to delete pending crosslinks that are older than 10 epochs. However, if the pending crosslinks were not added to the database within the first 10 epochs, this can lead to an leveldb: not found. This PR resolves the issue by adding a condition to skip checking pending crosslinks during the first 10 epochs, ensuring we avoid unnecessary database lookups and potential errors.

@GheisMohammadi GheisMohammadi self-assigned this Sep 12, 2024
@GheisMohammadi GheisMohammadi force-pushed the fix/delete_pending_crosslinks branch from 2734958 to 85eb1b7 Compare September 12, 2024 08:26
node/harmony/node.go Outdated Show resolved Hide resolved
@sophoah
Copy link
Contributor

sophoah commented Sep 24, 2024

@Frozen please review / approve. Thanks

@sophoah sophoah merged commit 544f2ac into dev Oct 4, 2024
4 checks passed
@sophoah sophoah deleted the fix/delete_pending_crosslinks branch October 4, 2024 05:22
@sophoah sophoah mentioned this pull request Oct 4, 2024
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