mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-27 14:22:20 +02:00
negentropy: fix getMinimalBound() to go 2 hex chars each time instead of 1.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user