We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pub fn random() -> Self { let body = BlockBody::sample(); let mut header = BlockHeader::random(); header.body_hash = body.hash(); Self { header, body } }
In struct Block, body hash is involved with the header id calculation but it is set after the calculation resulting in mismatch
The text was updated successfully, but these errors were encountered:
I don't understand it. Could you provide more information?
Sorry, something went wrong.
pseudo code:
header.body_hash = random() header.id = hash(header) header.body_hash = body.sample().hash
header.id is not consistent with header value after the line: header.body_hash = body.sample().hash
header.body_hash = body.sample().hash
No branches or pull requests
In struct Block, body hash is involved with the header id calculation but it is set after the calculation resulting in mismatch
The text was updated successfully, but these errors were encountered: