File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 11# proto-compiler
22
3+ ## Version
4+ * Protobuf version 33.0
5+
36```
47cargo run compile --ibc <ibc-go-path> --out ../proto/src/prost
58```
You can’t perform that action at this time.
0 commit comments