Skip to content

Commit dda8be7

Browse files
authored
Fix for audit (#97)
1 parent 610ab92 commit dda8be7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

light-client/src/header/eth_header.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,15 @@ impl ETHHeader {
246246
Ok(())
247247
}
248248

249-
/// Verifies the target attestation of the current `ETHHeader` against its parent header.
249+
/// Verifies the target attestation of the current `ETHHeader` against a given parent header.
250250
///
251251
/// This function checks the target vote attestation of the current header to ensure that
252-
/// the target block is the direct parent of the current block.
253-
///
252+
/// the target block matches the provided parent header (by both number and hash).
253+
/// The parent does not need to be the direct predecessor; the Fermi hard fork allows skipped blocks.
254254
pub fn verify_target_attestation(&self, parent: &ETHHeader) -> Result<VoteAttestation, Error> {
255255
let target_vote_attestation = self.get_vote_attestation()?;
256256
let target_data = &target_vote_attestation.data;
257257

258-
// The target block should be direct parent.
259258
if target_data.target_number != parent.number || target_data.target_hash != parent.hash {
260259
return Err(Error::UnexpectedTargetVoteAttestationRelation(
261260
target_data.target_number,

proto-compiler/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# proto-compiler
22

3+
## Version
4+
* Protobuf version 33.0
5+
36
```
47
cargo run compile --ibc <ibc-go-path> --out ../proto/src/prost
58
```

0 commit comments

Comments
 (0)