fix: Fix slow tx processing on some edge cases#957
Merged
Conversation
baa7a41 to
67dd408
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #957 +/- ##
==========================================
- Coverage 85.21% 85.12% -0.10%
==========================================
Files 292 292
Lines 22661 22664 +3
Branches 3413 3414 +1
==========================================
- Hits 19310 19292 -18
- Misses 2683 2694 +11
- Partials 668 678 +10 ☔ View full report in Codecov by Sentry. |
msbrogli
commented
Feb 21, 2024
67dd408 to
fb14c83
Compare
jansegre
previously approved these changes
Feb 22, 2024
fb14c83 to
318711e
Compare
jansegre
approved these changes
Feb 22, 2024
glevco
approved these changes
Feb 22, 2024
318711e to
20476d1
Compare
This was referenced Feb 23, 2024
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
We got this issue during the QA of hathor-core v0.59.0-rc1. This is triggered when a node does a sync from scratch using sync-v2 and, later on, switches to sync-v1. The sync-v1 works properly but the processing of some transactions get considerably slower.
Fixes https://github.com/HathorNetwork/internal-issues/issues/246.
Acceptance Criteria
Checklist
master, confirm this code is production-ready and can be included in future releases as soon as it gets merged