ethereum / trin

An Ethereum portal client: a json-rpc server with nearly instant sync, and low CPU & storage usage
365 stars 113 forks source link

feat: use id_indexed_v1 store for history network #1289

Closed morph-dev closed 4 months ago

morph-dev commented 4 months ago

What was wrong?

The history storage still uses LegacyHistoryStore. This will migrate it to IdIndexedV1Store.

How was it fixed?

Change to the IdIndexedV1Store implementation.

On the startup, this will perform the migration which can take few minutes (depending on the db size):

Remaining tasks for future PR-s:

To-Do

morph-dev commented 4 months ago

I'm was waiting with merging until we observe some metrics while running this on some machines. Here are the observations, from 35GB (trin-nyc1-11) and 10GB (kolby-nyc1-5) databases: