Skip to content

Commit

Permalink
more replay fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Ballet <[email protected]>
  • Loading branch information
gballet committed Sep 13, 2024
1 parent 4deabaa commit a41ce08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -1805,10 +1805,14 @@ func (n *LeafNode) serializeLeafWithUncompressedCommitments(cBytes, c1Bytes, c2B
if gaps[gapcount].Skip == 255 {
panic("empty leaf node")
}
// If the previous value wasn't nil, a new
// gap is starting.
if i > 0 && n.values[i-1] != nil {
gapcount++
}
gaps[gapcount].Skip++
if gapcount < skipListMaxGapCount {
gaps[gapcount].Skip++
}
}

// Check for an EOA
Expand Down

0 comments on commit a41ce08

Please sign in to comment.