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

tests: Fix at_height may panic #120

Merged

Conversation

mariocynicys
Copy link
Collaborator

with_height test method might produce invalid blocks because, after #79, we can't create empty blocks any more, and some random txs might result in a not enough proof of work, thus making at_height (in #56) method panic when validating the produced blocks.

Fixes #56

@mariocynicys mariocynicys added tests Issues related with test functionality easy to review easypeasy labels Sep 15, 2022
Copy link
Member

@sr-gi sr-gi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 25743b2

@sr-gi
Copy link
Member

sr-gi commented Sep 17, 2022

Needs rebase.

`with_height` test method might produce invalid blocks because, after talaia-labs#79, we can't create empty blocks any more, and some random txs might result in a not enough proof of work as in talaia-labs#56
@sr-gi sr-gi merged commit 51b384f into talaia-labs:master Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy to review easypeasy tests Issues related with test functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blockchain::at_height may return invalid data
2 participants