From 1dd1714444a2c422696ed11cd8f69165e8e813d4 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 19 Sep 2018 17:15:54 +1000 Subject: [PATCH] Half update some ssz indexes for ssz_block --- lighthouse/state/block/ssz_block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lighthouse/state/block/ssz_block.rs b/lighthouse/state/block/ssz_block.rs index 055549f4a..7f672dcdf 100644 --- a/lighthouse/state/block/ssz_block.rs +++ b/lighthouse/state/block/ssz_block.rs @@ -52,7 +52,7 @@ impl<'a> SszBlock<'a> { * and ensure that length is enough to store at least one attestation * record. */ - let attestation_len = decode_length(ssz, 72, LENGTH_BYTES) + let attestation_len = decode_length(ssz, 80, LENGTH_BYTES) .map_err(|_| BlockValidatorError::TooShort)?; if len < (76 + attestation_len + 96) { return Err(BlockValidatorError::TooShort); @@ -69,7 +69,7 @@ impl<'a> SszBlock<'a> { } pub fn parent_hash(&self) -> &[u8] { - &self.ssz[0..32] + &self.ssz[5..37] } pub fn slot_number(&self) -> u64 {