Fix ssz_split bug

This commit is contained in:
Paul Hauner
2018-09-25 07:17:14 +10:00
parent 1677b6dcc8
commit 209076e371

View File

@@ -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);
} }