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

testgen: Compute last_block_id property when generating a chain of light blocks #745

Closed
romac opened this issue Dec 15, 2020 · 0 comments · Fixed by #746
Closed

testgen: Compute last_block_id property when generating a chain of light blocks #745

romac opened this issue Dec 15, 2020 · 0 comments · Fixed by #746
Assignees
Labels

Comments

@romac
Copy link
Member

romac commented Dec 15, 2020

I would like to use testgen to generate a sequence of light blocks in order to test my implementation of backward verification.

Since backward verification requires comparing a header's hash against the last_block_id hash stored in the next block, we need to compute this property when generating a chain of light blocks in the LightChain helper.

@romac romac added the tests label Dec 15, 2020
@romac romac self-assigned this Dec 15, 2020
@romac romac changed the title [testgen] Compute last_block_id property when generating a chain of light blocks testgen: Compute last_block_id property when generating a chain of light blocks Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant