Commit Graph

27 Commits

Author SHA1 Message Date
12a39fd5e6 don't use flatbuffers for Event index table (make it opaque) 2024-08-30 17:39:16 -04:00
7377d52016 don't store receivedAt and source metadata 2024-08-30 16:51:43 -04:00
61781f351f use custom packing for indexable data: PackedEvent 2024-08-29 20:18:05 -04:00
5b3190c54a detect overflows when rejectEvents* config params are set very large 2023-07-21 06:36:36 -04:00
6d8aeaa881 setting rejectEphemeralEventsOlderThanSeconds larger than ephemeralEventsLifetimeSeconds did not work because events were then considered expired 2023-07-21 06:23:03 -04:00
d9048acb64 remove debug lines 2023-06-05 11:37:55 -04:00
fbbfc3a974 if two replaceable events have equal timestamps, retain the one with the lowest id 2023-05-19 00:45:11 -04:00
dcb2920578 Back out changes to generalised replacement behaviour, to preserve NIP conformance
- d tags only work on kinds 30k-40k
- ephemeral tag is not honoured
2023-05-19 00:14:04 -04:00
371f95bce3 idempotent event deletion, prevent levId reuse when latest event is replaced or deleted 2023-04-30 13:47:01 -04:00
0cbc937bf0 remove quadrable and yesstr 2023-04-29 15:20:04 -04:00
a4549883eb generalise replaceable and ephemeral events 2023-04-29 14:41:47 -04:00
6218ca3334 bugfix: don't crash if we can't load an event that was deleted while a DBQuery scan was paused 2023-02-27 06:41:50 -05:00
3d4b8853f1 ensure you can export a version 0 DB using a new binary 2023-02-09 04:31:31 -05:00
5c4fddb4a8 NIP-33: parameterized replaceable events 2023-02-08 13:27:34 -05:00
7661865bcc NIP-40 expiration timestamp 2023-02-08 06:48:38 -05:00
b32999cee8 max indexed tag size 2023-02-08 06:07:17 -05:00
376d7cbf1f track sources of events 2023-02-07 08:08:29 -05:00
9e2bc45a46 use 5+27 length for quadrable keys instead of 9+23
- reduces quadrable branching
- increases collision resistance
- good until year 2514
2023-02-02 15:04:43 -05:00
485abee8ed quadrable node gc, clean-up writes, consolidate deletion 2023-02-02 15:04:43 -05:00
60628d18c3 DB compression 2023-02-02 15:04:43 -05:00
ec9161ce08 DB schema refactor 2023-02-02 15:04:43 -05:00
c31a213704 fixed size arrays in NostrIndex, where possible
- shrinks records by 16 bytes, and 16 bytes for every e or p tag
2023-02-02 15:04:43 -05:00
9a586ac664 don't use deprecated OpenSSL functions 2023-01-20 12:33:35 -05:00
8102cd6a00 sort batches of writes to reduce fragmentation 2023-01-20 12:33:28 -05:00
10a1417af7 de-duplicate events at final write stage (issue #4) 2023-01-11 16:59:53 -05:00
5e62399844 support old and new versions of libsecp256k1 2023-01-10 12:53:09 -05:00
c47d07e985 initial commit 2023-01-09 15:33:52 -05:00