mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-03 12:54:27 +00:00
Fix bug on BooleanBitfield decoding
This commit is contained in:
@@ -161,7 +161,8 @@ impl ssz::Decodable for BooleanBitfield {
|
|||||||
Ok((BooleanBitfield::new(),
|
Ok((BooleanBitfield::new(),
|
||||||
index + ssz::LENGTH_BYTES))
|
index + ssz::LENGTH_BYTES))
|
||||||
} else {
|
} else {
|
||||||
let b = BooleanBitfield::from(&bytes[(index + 4)..(len + 4)]);
|
let b = BooleanBitfield::
|
||||||
|
from(&bytes[(index + 4)..(index + len + 4)]);
|
||||||
let index = index + ssz::LENGTH_BYTES + len;
|
let index = index + ssz::LENGTH_BYTES + len;
|
||||||
Ok((b, index))
|
Ok((b, index))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user