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

Build the state of the world #70

Closed
joelreymont opened this issue Sep 6, 2017 · 4 comments
Closed

Build the state of the world #70

joelreymont opened this issue Sep 6, 2017 · 4 comments
Assignees

Comments

@joelreymont
Copy link
Contributor

  • Build the state merkle trees and account balances by processing the blockchain from genesis block.
@sennui
Copy link
Contributor

sennui commented Sep 8, 2017

there is also yet another case: merkle tree "checkpoints". If we are to revert a block, because we get longer chain block (say we are +1 to prev-world and we get two new blocks or a block with higher difficulty). Now, we would have to recompute a state tree from the genesis. I wonder, if actually the state tree could be only an "engine" to compute proofs - but a state itself of the world itself would be an array of proofs. That way, it would be easy to revert to "state" to previous block state.

@joelreymont
Copy link
Contributor Author

+1

@sennui
Copy link
Contributor

sennui commented Sep 20, 2017

Do not close this ticket until handling state of the world if fixed after accepting longer fork

We need to force state from the common ancestor and then apply new transactions in regular way

Consult with @lucafavatella where is the longer fork handling in chain service

sennui added a commit that referenced this issue Sep 21, 2017
…dments-1

[IGNORE][Part of review of PR 147] GH-70 State service amendments 1
@sennui
Copy link
Contributor

sennui commented Sep 21, 2017

Further work that is not in scope of the Sprint 1

  • handle forcing trees from chain service
  • improve validation from height to comparing hashes
  • adjust caching layer (future pesistance layer) in chain service
    to use trees from blocks as checkpoints

CC: @wagerlabs @lucafavatella

sennui added a commit that referenced this issue Sep 22, 2017
solves GH-70 extend chain with state of the world service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants