Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenwang1996 committed Feb 1, 2023
1 parent 9b0275d commit 0a0e8a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chain/chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,9 @@ impl Chain {
if header.challenges_root() != &MerkleHash::default() {
return Err(Error::InvalidChallengeRoot);
}
if !header.challenges_result().is_empty() {
return Err(Error::InvalidChallenge);
}
}

Ok(())
Expand Down

0 comments on commit 0a0e8a3

Please sign in to comment.