mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 12:55:10 -05:00
Fixes in ssz impl
This commit is contained in:
@@ -129,7 +129,7 @@ def chunk_count(typ: SSZType) -> int:
|
||||
if isinstance(typ, BasicType):
|
||||
return 1
|
||||
elif issubclass(typ, Bitfield):
|
||||
return (typ.length + 7) // 8 // 32
|
||||
return (typ.length + 255) // 256
|
||||
elif issubclass(typ, Elements):
|
||||
return (typ.length * item_length(typ.elem_type) + 31) // 32
|
||||
elif issubclass(typ, Container):
|
||||
|
||||
Reference in New Issue
Block a user