Skip to content

Commit db53981

Browse files
authored
fix-mainnet-state-serialization (#10452)
1 parent 22a2e38 commit db53981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrastructure/ssz/src/main/java/tech/pegasys/teku/infrastructure/ssz/schema/impl/AbstractSszListSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public int getSszVariablePartSize(final TreeNode node) {
110110
// BitlistImpl is handled specially
111111
return length / 8 + 1;
112112
} else {
113-
return bitsCeilToBytes(length * getSszElementBitSize());
113+
return Math.toIntExact(bitsCeilToBytes((long) length * getSszElementBitSize()));
114114
}
115115
} else {
116116
return getCompatibleVectorSchema().getVariablePartSize(getVectorNode(node), length)

0 commit comments

Comments
 (0)