HathorNetwork / hathor-core

Hathor core is the official and reference client for operating a full node in Hathor Network.
https://hathor.network
Apache License 2.0
83 stars 26 forks source link

fix(performance): using RocksDBMempoolTipsIndex made the sync too slow #1100

Closed jansegre closed 2 months ago

jansegre commented 2 months ago

Motivation

With the deploy of v0.62.0-rc.1 the sync from scratch took significantly longer than expected. The cause was confirmed to be the use of RocksDBMempoolTipsIndex that was introduced. The simplest solution to quickly advance with the release is to revert to MemoryMempoolTipsIndex.

Acceptance Criteria

Checklist

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.85%. Comparing base (592f47c) to head (0a60ec7).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## hotfix #1100 +/- ## ========================================== - Coverage 84.99% 84.85% -0.14% ========================================== Files 314 314 Lines 23957 23957 Branches 3621 3621 ========================================== - Hits 20362 20329 -33 - Misses 2880 2913 +33 Partials 715 715 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.