Open jackzhhuang opened 5 months ago
I don't understand it. Could you provide more information?
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
In struct Block, body hash is involved with the header id calculation but it is set after the calculation resulting in mismatch