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

Light Syncing Mode #24

Open
patrick-ogrady opened this issue Jan 9, 2022 · 2 comments
Open

Light Syncing Mode #24

patrick-ogrady opened this issue Jan 9, 2022 · 2 comments
Labels

Comments

@patrick-ogrady
Copy link
Contributor

patrick-ogrady commented Jan 9, 2022

Instead of storing the value to the DB, allow node operators to just store the length of the value (minimum needed for block execution) for keys/prefixes they don't care about.

This allows for very lightweight running of nodes and/or just consensus nodes.

This mode should also delete historical blocks (if the rpcchainvm supports this).

We could also change the canonical form of the block to not actually include values. Instead, they could be attached and fetched separately for anyone that wants to validate their correctness/serve data.

@patrick-ogrady
Copy link
Contributor Author

After #40, we only store the minimum required amount of data to serve block queries. If we want to serve any less, it will require changes in AvalancheGo that allow a node to specify it doesn't have a certain range of blocks.

@patrick-ogrady
Copy link
Contributor Author

#79 made this much easier to do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant