Implementation ideas
Implement a cleanup mechanism for the store used by header and data sync service that:
-
Deletes headers from the store once they have been successfully:
- Retrieved via P2P
- Processed and verified
- Stored in the
headerCache
-
Deletes data from the store once it has been successfully:
- Retrieved via P2P
- Processed and verified
- Stored in the
dataCache