Commit graph

37 commits

Author SHA1 Message Date
Vlad Stan
868e02d3c2 feat: limit max events per second 2023-02-09 10:28:56 +02:00
Vlad Stan
bddab70677 feat: enforce query limit on relay side 2023-02-08 18:15:43 +02:00
Vlad Stan
b4094ad2f5 feat: limit the number of filters a client can have 2023-02-08 17:51:35 +02:00
Vlad Stan
2cb9d083c6 feat: send message back to owner 2023-02-08 15:07:53 +02:00
Vlad Stan
4b96f65c85 fix: delete relay 2023-02-08 12:58:19 +02:00
Vlad Stan
24f803921e refactor: rename variables 2023-02-08 12:00:01 +02:00
Vlad Stan
9501286c1f refactor: extract method _set_client_callbacks() 2023-02-08 11:58:19 +02:00
Vlad Stan
423364a5c6 refactor: extract method _send_msg() 2023-02-08 11:56:03 +02:00
Vlad Stan
7215d37fe9 feat: more detailed error messages for rejected event 2023-02-08 11:52:07 +02:00
Vlad Stan
43dc3e85ce feat: check access control list 2023-02-08 11:16:34 +02:00
Vlad Stan
e1fe19b115 refactoring: small 2023-02-08 10:47:43 +02:00
Vlad Stan
30dfb03d2d refactor: rename private fields 2023-02-08 10:26:32 +02:00
Vlad Stan
9c5b7f69dd fix: init relays 2023-02-08 10:23:02 +02:00
Vlad Stan
534cf04210 feat: use RelayConfig for active relays 2023-02-08 10:21:26 +02:00
Vlad Stan
6527d04977 refactor: function renaming 2023-02-08 09:15:26 +02:00
Vlad Stan
d0341911b9 refactor: extract NostrFilter.to_sql_components 2023-02-08 09:10:04 +02:00
Vlad Stan
f97cd1dff6 fix: group clients by relay 2023-02-08 08:59:19 +02:00
Vlad Stan
14df3a6ffb tests: update after changes 2023-02-07 18:15:43 +02:00
Vlad Stan
4db031c10e feat: close connection to client when relay is deactivated 2023-02-06 17:59:36 +02:00
Vlad Stan
f56e9e2e56 feat: block access to deactivated client 2023-02-06 17:42:27 +02:00
Vlad Stan
aff949fed5 feat: allow custom relay IDs 2023-02-06 16:58:29 +02:00
Vlad Stan
5a747361af feat: make event kind: 3 replaceable 2023-02-06 12:09:53 +02:00
Vlad Stan
10ef9ee2ac feat: on meta update, replace old meta 2023-02-06 11:10:14 +02:00
Vlad Stan
57197b981d refactor: mark delete using query builder 2023-02-06 10:37:06 +02:00
Vlad Stan
f01ea6a237 refactor: delete using filter 2023-02-06 10:25:28 +02:00
Vlad Stan
2dfd70c38c refactor: query builder 2023-02-06 10:19:47 +02:00
Vlad Stan
5ca27ff28a fix: ok -> OK upper case 2023-02-03 18:17:41 +02:00
Vlad Stan
d27ece735e fix: NIP20 duplicate event 2023-02-03 17:42:10 +02:00
Vlad Stan
9b9e2623be fix: do not remove delete events 2023-02-03 15:50:29 +02:00
Vlad Stan
01764c155e feat: add delete post tests 2023-02-03 15:45:23 +02:00
Vlad Stan
841b8d6ea4 test: more fixtures 2023-02-02 16:27:06 +02:00
Vlad Stan
80ae3db4c1 refactor: extract more methods 2023-02-02 09:39:12 +02:00
Vlad Stan
3cd1711f84 feat: hack send message multiple times 2023-02-01 19:18:53 +02:00
Vlad Stan
f17525800f feat: partial NIP15 2023-01-31 14:29:22 +02:00
Vlad Stan
fbae6d6c88 feat: add basic NIP20 response 2023-01-31 12:36:59 +02:00
Vlad Stan
eb443902c2 chore: code clean-up 2023-01-31 11:26:03 +02:00
Vlad Stan
4b82905f78 feat: extracted 2023-01-30 14:40:55 +02:00