Skip to content

fix: Fix slow tx processing on some edge cases #957

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

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

msbrogli
Copy link
Member

@msbrogli msbrogli commented Feb 21, 2024

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

  1. Stop marking transactions confirmed by the best blockchain as voided during conflict resolution. Notice that this edge case only occurs when the conflicting transaction is soft voided and is confirmed by the best blockchain.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@msbrogli msbrogli self-assigned this Feb 21, 2024
@msbrogli msbrogli requested a review from jansegre as a code owner February 21, 2024 18:11
@msbrogli msbrogli force-pushed the fix/slow-tx-processing branch 2 times, most recently from baa7a41 to 67dd408 Compare February 21, 2024 18:40
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.12%. Comparing base (7876fa5) to head (318711e).

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.
📢 Have feedback on the report? Share it here.

@jansegre jansegre requested a review from glevco February 22, 2024 20:31
@msbrogli msbrogli force-pushed the fix/slow-tx-processing branch from 67dd408 to fb14c83 Compare February 22, 2024 22:32
jansegre
jansegre previously approved these changes Feb 22, 2024
@msbrogli msbrogli force-pushed the fix/slow-tx-processing branch from 318711e to 20476d1 Compare February 23, 2024 17:18
@msbrogli msbrogli merged commit 20476d1 into master Feb 23, 2024
@msbrogli msbrogli deleted the fix/slow-tx-processing branch February 23, 2024 17:18
This was referenced Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants