mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
Fix ssz_split bug
This commit is contained in:
@@ -44,7 +44,7 @@ pub fn split_one_attestation<'a>(full_ssz: &'a [u8], index: usize)
|
|||||||
+ hashes_len
|
+ hashes_len
|
||||||
+ bitfield_len;
|
+ bitfield_len;
|
||||||
|
|
||||||
if index + full_ssz.len() < len {
|
if full_ssz.len() < index + len {
|
||||||
return Err(AttestationSplitError::TooShort);
|
return Err(AttestationSplitError::TooShort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user