negentropy: fix getMinimalBound() to go 2 hex chars each time instead of 1.

This commit is contained in:
fiatjaf 2024-09-20 18:05:40 -03:00
parent 0bcefc86ef
commit 101031b9e8

View File

@ -82,7 +82,7 @@ func getMinimalBound(prev, curr Item) Bound {
sharedPrefixBytes := 0
for i := 0; i < 32; i++ {
for i := 0; i < 32; i += 2 {
if curr.ID[i:i+2] != prev.ID[i:i+2] {
break
}