Skip to content

Commit af95552

Browse files
authored
disable broken serialization optimizations (#460)
Signed-off-by: Ignacio Hagopian <[email protected]>
1 parent a80b12b commit af95552

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tree.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ func (n *LeafNode) serializeLeafWithUncompressedCommitments(cBytes, c1Bytes, c2B
18451845
children := make([]byte, 0, NodeWidth*LeafValueSize)
18461846
var (
18471847
bitlist [bitlistSize]byte
1848-
isEoA = true
1848+
isEoA = false // TODO: EoA serialization optimization is broken -- re-enable when fixed.
18491849
count, lastIdx int
18501850
)
18511851
for i, v := range n.values {
@@ -1883,6 +1883,9 @@ func (n *LeafNode) serializeLeafWithUncompressedCommitments(cBytes, c1Bytes, c2B
18831883
}
18841884
}
18851885

1886+
// TODO: single slot serialization optimization is apparently broken -- force disabling it until is fixed.
1887+
count = 256
1888+
18861889
// Create the serialization.
18871890
var result []byte
18881891
switch {

0 commit comments

Comments
 (0)