Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store and load the blockchain from a file #78

Open
2 tasks
JeremyPansier opened this issue Oct 4, 2022 · 2 comments
Open
2 tasks

Store and load the blockchain from a file #78

JeremyPansier opened this issue Oct 4, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@JeremyPansier
Copy link
Member

Context
Verifying the whole blockchain might take more time as it grows up.

Description
A lot of time can be saved if the blockchain can be stored into a file to be loaded the next time the node is started.

Tasks
Try to split the feature into small tasks.

  • Make it possible to store the blockchain into a file
  • Make it possible to load the blockchain from a file
@JeremyPansier JeremyPansier added the enhancement New feature or request label Oct 4, 2022
@JeremyPansier JeremyPansier added this to the Improve scalability milestone Oct 4, 2022
@JeremyPansier JeremyPansier changed the title Be able to store and load the blockchain from a file Store and load the blockchain from a file Mar 7, 2023
@JeremyPansier
Copy link
Member Author

The registered addresses and the wallet balances should be stored too.

@JeremyPansier
Copy link
Member Author

JeremyPansier commented Mar 11, 2023

The added and removed registered addresses should be store in the block this way:
3b9e924#diff-bf087bbb04af5e09dc6414f3eb451376375ae0defbf767a6c60cc2190d18d4ecR52

But this is not verifiable until the node stores a list of registered addresses. Paradoxically, the changes above might be useless when a list of registered addresses is stored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To Do
Development

No branches or pull requests

1 participant