Skip to content

Commit

Permalink
disable broken serialization optimizations (#460)
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign authored Oct 25, 2024
1 parent a80b12b commit af95552
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ func (n *LeafNode) serializeLeafWithUncompressedCommitments(cBytes, c1Bytes, c2B
children := make([]byte, 0, NodeWidth*LeafValueSize)
var (
bitlist [bitlistSize]byte
isEoA = true
isEoA = false // TODO: EoA serialization optimization is broken -- re-enable when fixed.
count, lastIdx int
)
for i, v := range n.values {
Expand Down Expand Up @@ -1883,6 +1883,9 @@ func (n *LeafNode) serializeLeafWithUncompressedCommitments(cBytes, c1Bytes, c2B
}
}

// TODO: single slot serialization optimization is apparently broken -- force disabling it until is fixed.
count = 256

// Create the serialization.
var result []byte
switch {
Expand Down

0 comments on commit af95552

Please sign in to comment.