mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-27 01:02:44 +02:00
negentropy: fix getMinimalBound() to go 2 hex chars each time instead of 1.
This commit is contained in:
parent
0bcefc86ef
commit
101031b9e8
@ -82,7 +82,7 @@ func getMinimalBound(prev, curr Item) Bound {
|
|||||||
|
|
||||||
sharedPrefixBytes := 0
|
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] {
|
if curr.ID[i:i+2] != prev.ID[i:i+2] {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user