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

Origin block store should exist in a minimal version #456

Open
schemar opened this issue Nov 14, 2018 · 0 comments
Open

Origin block store should exist in a minimal version #456

schemar opened this issue Nov 14, 2018 · 0 comments

Comments

@schemar
Copy link
Contributor

schemar commented Nov 14, 2018

The base BlockStore should track all blocks and verify the parent hashes (not only the auxiliary block store).

The base block store should verify that votes are targeting a child of the source (same blockchain).

The origin block store only stores block reports - which it inherits from the base block store - and it returns a origin transition object and hash.

The block store should not require the starting block hash in the constructor. The origin block store should get the hash in the constructor.

The auxiliary block store should have an init() function (or extend it if it exists) that requires that the starting block hash is 0x00... and then sets it to the block hash it gets from the solidity built-in method (the current block hash).

Only the auxiliary block store will be able to verify block hashes against the most recent 256 known hashes.

Casper messages are part of both (base class).

@schemar schemar changed the title OriginBlockstore should exist in a minimal version Origin block store should exist in a minimal version Nov 14, 2018
@schemar schemar added this to the Sprint 2018-12-04 milestone Nov 20, 2018
@schemar schemar removed this from the Sprint 2018-12-04 milestone Nov 29, 2018
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

1 participant