nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 9ce284a2f6d91bd1ae3786aec9010559a0986965
parent 5bc65ffffc6d8ad3fbbc12f3cda9c0a92ea62c94
Author: William Casarin <jb55@jb55.com>
Date:   Fri,  6 Oct 2023 10:37:34 -0700

Fix profiles not updating

Fix notes getting written to index with the wrong timestamp

Changelog-Fixed: Fix profiles not updating

Diffstat:
Mnostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nostrdb.c b/nostrdb.c @@ -391,7 +391,7 @@ static inline void ndb_tsid_init(struct ndb_tsid *key, unsigned char *id, uint64_t timestamp) { memcpy(key->id, id, 32); - key->timestamp = 0; + key->timestamp = timestamp; } // useful for range-searching for the latest key with a clustered created_at timen