Skip to content

Commit

Permalink
Update beacon_node/network/src/sync/block_lookups/common.rs
Browse files Browse the repository at this point in the history
Co-authored-by: realbigsean <seananderson33@GMAIL.com>
  • Loading branch information
dapplion and realbigsean authored Mar 29, 2024
1 parent a6c4c09 commit 2211634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_node/network/src/sync/block_lookups/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ impl<L: Lookup, T: BeaconChainTypes> RequestState<L, T> for BlobRequestState<L,

if !self.requested_ids.contains(&received_id) {
Err(LookupVerifyError::UnrequestedBlobId)
} else if blob.verify_blob_sidecar_inclusion_proof().unwrap_or(false) {
} else if !blob.verify_blob_sidecar_inclusion_proof().unwrap_or(false) {
Err(LookupVerifyError::InvalidInclusionProof)
} else if blob.block_root() != expected_block_root {
Err(LookupVerifyError::UnrequestedHeader)
Expand Down

0 comments on commit 2211634

Please sign in to comment.