Commit Graph

221 Commits

Author SHA1 Message Date
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
09893b89c8 make sync command use negentropy 2023-05-04 14:32:21 -04:00
de475c59ff negentropy integration 2023-05-01 17:51:14 -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
522258dafa QueryScheduler refactor 2023-04-29 14:42:09 -04:00
a4549883eb generalise replaceable and ephemeral events 2023-04-29 14:41:47 -04:00
e4e79af121 Merge branch 'beta' 2023-04-29 14:39:02 -04:00
70c0edc350 minor clean-ups 2023-04-29 14:38:24 -04:00
68fc85e864 fix lapse of judgement on logging 2023-03-29 05:32:05 -05:00
bc7fa46feb I submit to the might of DougSC
The acceptEvent is expecting to
parse a JSON string. Instead of
evJson.get_string()
try tao::json::to_string(evJson)

and it worked
2023-03-28 20:08:55 -05:00
2308276af5 patching writePolicy into cmd_stream, assuming we
want writePolicy to govern both relayIngest and stream

I really hate spam, is what I'm trying to say.
2023-03-27 18:24:41 -05:00
35db3a64c2 be friendly to people using websocat to debug. 2023-03-13 20:37:25 -03: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
5175664e2f fix query behaviour when limit is present (reported by @Mazin) 2023-02-25 00:03:59 -05:00
d6151072fe simple sorting implementation, for benchmarking 2023-02-25 00:03:59 -05:00
54f467cc1c reverse export 2023-02-25 00:03:59 -05:00
18acadf4c2 remove auto-gc after delete and import 2023-02-25 00:03:59 -05:00
d5cb732cd4 refactor cron 2023-02-25 00:03:59 -05:00
30b8c387a2 don't throw exceptions if modifications are made during dict operations 2023-02-15 17:00:11 -05:00
decc3aea26 delete command, split up compact and gc into separate commands 2023-02-11 07:36:59 -05:00
204c808b41 Monitors can't be stored in flat maps because we manage pointers into them in MonitorSets 2023-02-09 12:40:40 -05:00
3d4b8853f1 ensure you can export a version 0 DB using a new binary 2023-02-09 04:31:31 -05:00
d89034bd9f plugin docs 2023-02-09 03:25:45 -05:00
7c0477c202 re-init plugin when lookback seconds config changes 2023-02-09 02:50:23 -05:00
61f2638f88 work on write policy plugin 2023-02-08 16:44:53 -05:00
51243ce62f option to extract client's IP from HTTP header (ie X-Real-IP) 2023-02-08 16:10:46 -05:00
4eb7a4fe53 more work on write policy plugins 2023-02-08 15:04:59 -05:00
679d3834e4 import --no-gc option 2023-02-08 13:27:36 -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
d6df5c65b1 Revert "allow filtering for indexed values > 255 bytes"
This reverts commit 93ca4b9044.
2023-02-08 05:46:40 -05:00
1d2295bd7d write policy wip 2023-02-08 05:43:46 -05:00
79dcceaee0 nice rendering of IPs 2023-02-07 11:59:48 -05:00
67331a6e6f simplify quadrable instance creation 2023-02-07 11:59:02 -05:00
67d11ced30 output DB version in info command 2023-02-07 08:19:13 -05:00
376d7cbf1f track sources of events 2023-02-07 08:08:29 -05:00
b3109d3e57 unused var 2023-02-05 15:55:31 -05:00
2c86254fb9 limit on max number of concurrent REQs 2023-02-05 15:43:11 -05:00
43cdd64956 increase max subscription ID length, needed for hamstr client 2023-02-05 15:41:59 -05:00
93ca4b9044 allow filtering for indexed values > 255 bytes 2023-02-05 15:02:36 -05:00
271b1723ac setrlimit nofiles config 2023-02-02 15:42:42 -05:00
4f3a245407 config for compression 2023-02-02 15:04:43 -05:00
8d0c9952ab flat maps/sets 2023-02-02 15:04:43 -05:00
5117485ebf GC improvements 2023-02-02 15:04:43 -05:00
ee612416e0 index-only scans for pubkey+kind 2023-02-02 15:04:43 -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