improve and make nip77 api nicer so it could be better used in nak.

This commit is contained in:
fiatjaf
2025-11-12 16:27:51 -03:00
parent 43fabbeb2a
commit 98dbe7b9e9
6 changed files with 63 additions and 137 deletions

View File

@@ -43,7 +43,7 @@ var neg = &cli.Command{
// create negentropy object and initialize it with events
vec := vector.New()
neg := negentropy.New(vec, frameSizeLimit)
neg := negentropy.New(vec, frameSizeLimit, true, true)
for evt := range db.QueryEvents(filter, math.MaxInt) {
vec.Insert(evt.CreatedAt, evt.ID)
}