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

Support importing individual blocks from a folder #1198

Open
Arkenan opened this issue Nov 18, 2024 · 0 comments · May be fixed by #1203
Open

Support importing individual blocks from a folder #1198

Arkenan opened this issue Nov 18, 2024 · 0 comments · May be fixed by #1203

Comments

@Arkenan
Copy link
Contributor

Arkenan commented Nov 18, 2024

Hive gives a client initial blocks either via a chain.rlp file or individual block files in a /blocks folder. We already support the first case via the import flag. However, we just skip the latter. We would need to support that to make the consensus suite be able to at least run the tests correctly.


For more context on consensus suite problems, our node logs:

Started store engine
Storing initial state from genesis
Storing genesis block with number 0 and hash 0x1bd8…e792

But then the simulator shows:

last block hash mismatch:
  want 0xca2e5143a2384414736a32c898f032d835feb43dec9cd6a77f7e2b2695e4cf14
   got 0x1bd8cc1b182ec860a1042ad2e1c130fd5e56cb050b9f1fe368de36725cf2e792

Genesis is correctly imported, but it is considered latest, which is not.

@Arkenan Arkenan changed the title Make consensus hive tests start Support importing individual blocks from a folder Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant