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

[Debugging] fix test "testMineAttempt" #19

Open
bbulgu opened this issue Jun 12, 2021 · 0 comments
Open

[Debugging] fix test "testMineAttempt" #19

bbulgu opened this issue Jun 12, 2021 · 0 comments

Comments

@bbulgu
Copy link
Contributor

bbulgu commented Jun 12, 2021

org.opentest4j.AssertionFailedError: new block was not properly added ==> Expected :11001110000100100000100111010135706429811001110000100100000100111010123355960oayxbzqjbd Actual :000000000000000000000000000000357064298

Suggestion: investigate whether the flag is updated correctly, i.e., after mining a new block the flag should point to it: blk.numID = flag.nameID

In general always flag.nameID should point to the latest block, and flag.numID should always be zero.

Please add a test verifying that when a block is mined correctly we have the flag updated accordingly.

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