Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Update SyncedPoint to use leveldb #658

Open
jacque006 opened this issue Sep 2, 2021 · 0 comments
Open

Update SyncedPoint to use leveldb #658

jacque006 opened this issue Sep 2, 2021 · 0 comments
Assignees
Labels
client This PR is about implementing the client

Comments

@jacque006
Copy link
Collaborator

jacque006 commented Sep 2, 2021

Problem

When a node starts syncing when the client process starts up, it will sync from the genesis block defined in genesis.json. However, various StorageEngines and other components could be up to date on disk. This full re-syncing is unnecessary and makes node restarts/crashes slower to recover from.

Solution

  • Update SyncedPoint (SP) to use leveldb to properly store SP data.
  • Use SP data (if found) to begin syncing from the last block/batch stored when syncer starts its initial sync.

Consider

This may need to be implemented after we have persisted batch and transaction storage

@jacque006 jacque006 added the client This PR is about implementing the client label Sep 2, 2021
@jacque006 jacque006 added this to the Public Testnet 2 milestone Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
client This PR is about implementing the client
Projects
None yet
Development

No branches or pull requests

2 participants