Commit Graph

1083 Commits

Author SHA1 Message Date
fiatjaf 588e415440 small fixes in hex parsing. 2025-10-24 00:12:25 -03:00
fiatjaf dd097470d2 try to reconnect even if the first connection failed. 2025-10-22 07:52:08 -03:00
fiatjaf 6ee0d090e3 khatru: deploy docs to netlify. 2025-10-20 18:37:21 -03:00
fiatjaf 8cf120c08f khatru: update docs again, now it seems to be mostly up to date. 2025-10-20 18:22:08 -03:00
fiatjaf e1fbd09407 fix iterator cancelation in relay.QueryEvents() 2025-10-17 19:32:23 -03:00
fiatjaf fc16a36481 mmm: stop truncating mmap, reorder commits and write operations such that eventual inconsistencies are minimized and less harmful. 2025-10-16 03:11:11 +00:00
fiatjaf 98cbe66e16 mmm: test that free ranges are being used. 2025-10-16 01:43:51 +00:00
fiatjaf 0dcaf0fa95 mmm: fixes to rescan logic. 2025-10-15 23:02:32 +00:00
fiatjaf 5d2675f356 mmm: freeranges tests and fixes. 2025-10-15 03:50:00 +00:00
fiatjaf ac49036b77 mmm: small .EnsureLayer() change, fuzz tests for fixing borked databases 2025-10-15 01:31:44 +00:00
fiatjaf d85bb8aa1b khatru: fix for panics when expiration manager is nil. 2025-10-14 01:52:10 +00:00
fiatjaf 9e41bc69c4 mmm: test .Rescan() 2025-10-14 01:46:42 +00:00
fiatjaf 53e838c61d mmm: freeranges computed on startup and kept only in memory. 2025-10-14 00:38:51 +00:00
fiatjaf bcc7575e04 mmm: do random rescans in the fuzz test to ensure they don't break anything. 2025-10-14 00:25:44 +00:00
fiatjaf 95c70e3225 mmm: Rescan() 2025-10-14 00:19:52 +00:00
fiatjaf 776a82ba7f sdk: fix for invalid npub in InputToProfile() 2025-10-13 23:55:43 +00:00
fiatjaf 47b1608e6b mmm: fix fuzz test. 2025-10-13 21:53:48 +00:00
fiatjaf 96fcff7908 mmm: drop mmap on .Close() call. 2025-10-13 21:26:42 +00:00
fiatjaf 4d1774264a mmm: add debug helpers for fixing an inconsistent db. 2025-10-12 13:55:44 +00:00
fiatjaf 34b0d1f339 nip29: moderation actions and invite code support.
(from pyramid implementation.)
2025-10-11 01:37:01 +00:00
fiatjaf afa5e5bc0e khatru: fix test for expiration manager, skip it unless code is manually adjusted for the test. 2025-10-01 12:22:01 -03:00
fiatjaf 46f28203ed khatru: expiration manager takes query and delete methods, which are given automatically by .UseEventstore() 2025-10-01 12:08:08 -03:00
fiatjaf 8957144c77 khatru: expiration manager is only started automatically when .UseEventstore() is called. 2025-10-01 11:57:32 -03:00
fiatjaf 1e40fecdc2 sdk: when FetchSpecificEvent() can't find anything return nil and no errors. 2025-09-29 17:04:47 -03:00
fiatjaf f69c78cba7 irrelevant minor things. 2025-09-29 16:20:19 -03:00
Jon Staab 9ba61b56e6 Add Tags.Has and nip11.Self 2025-09-27 10:48:33 -03:00
Jon Staab 113657314e Use ID in nip86.IDReason 2025-09-26 09:41:25 -03:00
fiatjaf 59bd3c29ff sdk: EraseAccessTime and EraseEventRelays. 2025-09-24 11:24:01 -03:00
fiatjaf 71978f2bc2 sdk: event access time kv helpers. 2025-09-24 09:14:58 -03:00
fiatjaf adcab08bd7 nip11: catch one error that wasn't. 2025-09-24 07:38:17 -03:00
fiatjaf 3c540e726e boltdb: fix reusing index key that has less capacity than necessary. 2025-09-23 19:34:59 -03:00
fiatjaf 79f1a9c636 fix sqlite mention. 2025-09-23 19:02:09 -03:00
fiatjaf 8b8693f4bf other useless quibbles. 2025-09-23 12:29:55 -03:00
fiatjaf 5727c1e477 fix nip19 decoding type quibble (this shouldn't be an error I think, but). 2025-09-23 12:29:45 -03:00
fiatjaf fd9f956a3d update readmes so they're less outdated. 2025-09-22 17:05:17 -03:00
fiatjaf 04e095eb1b "a" deletions split only 3.
see https://github.com/fiatjaf/khatru/pull/60
2025-09-22 16:46:38 -03:00
fiatjaf 805003b39b khatru: fix policy that requires nostr-prefix references. 2025-09-15 08:27:29 -03:00
fiatjaf e8456dab70 khatru/policies: RejectUnprefixedNostrReferences 2025-09-10 10:40:06 -03:00
fiatjaf 9480fc1de6 eventstore: deletion safety tests. 2025-09-10 09:58:13 -03:00
fiatjaf c5d4b52a6f fix a dangling pending in pool.subMany() 2025-09-08 11:22:35 -03:00
fiatjaf b67e3092b0 release a goroutine that could leak in some conditions. 2025-09-07 19:01:43 -03:00
fiatjaf 9933bb7865 khatru: fix multi-user auth stupid bug. 2025-09-06 23:26:55 -03:00
fiatjaf 4754518278 mmm: querying by ids is restricted to the layer it was initiated. 2025-09-06 21:28:22 -03:00
fiatjaf fd53d7309f khatru: support multi-user auth. 2025-09-06 10:11:31 -03:00
Anthony Accioly 8750197ea7 khatru/blossom: blossom ext updates.
see https://github.com/fiatjaf/khatru/pull/59
2025-09-05 11:18:51 -03:00
fiatjaf 5f8b069f5d khatru: nip86 "u" tag checking normalization fix. 2025-09-05 11:06:17 -03:00
fiatjaf 0770f217a5 khatru: prevent large indexable tags doesn't make any sense anymore as we don't index tags verbatim, only hashes. 2025-09-04 10:13:08 -03:00
fiatjaf aec2dc318d actually it's better if nip11 pubkey is a pointer. 2025-09-04 00:35:46 -03:00
fiatjaf cd398b94b5 get rid of badger everywhere, including as an sdk/hints backend. 2025-09-04 00:35:17 -03:00
fiatjaf a09429236e khatru: disable ratelimit for local ipv6 too. 2025-09-03 21:32:17 -03:00