Mike Dilger
ea3d66f746
Option to align events in the event_map
2024-04-09 18:38:19 +12:00
Mike Dilger
a4233dbc45
EventStore.iter()
2024-04-09 18:37:05 +12:00
Mike Dilger
ce18610918
lmdb::log_stats() to do it's own txn
2024-04-09 18:36:12 +12:00
Mike Dilger
be219c924b
Split low-level LMDB code out from Store (big refactor)
2024-04-09 18:35:06 +12:00
Mike Dilger
72545189d2
migration 5: Simplify with deleted_ids table (no pubkey)
2024-04-09 18:23:36 +12:00
Mike Dilger
601c9fafd8
migration 4: Simplify store - stop tracking deleted_offsets
2024-04-09 18:23:28 +12:00
Mike Dilger
77caad1a7d
Log hostname at startup
2024-04-09 18:19:22 +12:00
Mike Dilger
1e34a20108
clippy fix
2024-04-09 08:57:58 +12:00
Mike Dilger
b7da4b1a28
Simplify get_event_by_offset() output, avoid a panic
2024-04-09 08:57:53 +12:00
Mike Dilger
e10104a55b
fix test compile error
2024-04-09 08:27:45 +12:00
Mike Dilger
dd8e345e86
moderate: show kind
2024-04-09 07:39:01 +12:00
Mike Dilger
c420335188
fix compile error
2024-04-09 07:38:21 +12:00
Mike Dilger
43d7efbbda
Dong log message if error was AuthRequired
2024-04-08 06:41:48 +12:00
Mike Dilger
8dda490bf2
print stats on HUP
2024-04-05 15:35:49 +13:00
Mike Dilger
808d593258
Fix log target
2024-04-05 15:32:00 +13:00
Mike Dilger
5ee9dee6f1
Count runtime and inbound/outbound traffic bytes
2024-04-05 15:26:41 +13:00
Mike Dilger
5daff6fac5
Add services to chorus relay
2024-04-03 07:40:25 +13:00
Mike Dilger
5bde8aa400
moderate: delete further events by banned pubkeys
2024-03-29 10:47:20 +13:00
Mike Dilger
c96a9a83b1
fix chorus_moderate input
2024-03-28 08:44:10 +13:00
Mike Dilger
f5043cf50d
dump approvals functions and binary
2024-03-22 09:51:48 +13:00
Mike Dilger
69e2e1be37
update DEPLOYING.md
2024-03-22 09:15:00 +13:00
Mike Dilger
46ffc8cec5
chorus_moderate: command line tool to approve or ban users and events
2024-03-22 09:10:59 +13:00
Mike Dilger
15bb8c23c1
Deal with event/pubkey approvals in event screens (in and out)
2024-03-22 09:10:59 +13:00
Mike Dilger
9c3d35666b
Store: storage for approval of events and pubkeys (as either true or false)
2024-03-22 08:52:10 +13:00
Mike Dilger
925ec1168c
Store::delete_event()
2024-03-22 08:50:54 +13:00
Mike Dilger
a701e148dc
Version 1.2.0
v1.2.0
2024-03-22 06:51:22 +13:00
Mike Dilger
c8b365f264
rename dump to chorus_dump
2024-03-22 06:50:13 +13:00
Mike Dilger
585dda0cb8
Do not log IP addresses -- hash IP addresses with SHA256:
...
We need to match repeat requests as being from the same IP address so we can keep
IP address reputations. If someone has a suspect IP address, they can hash it and
then find it in our logs, so this is not perfect protection. But if they are
trying to get IP addresses they won't find any.
2024-03-17 14:13:04 +13:00
Mike Dilger
b80f14d56b
Use parking lot RwLock, move away from async RwLock, honor config changes to allow_scraping
2024-03-16 14:44:42 +13:00
Mike Dilger
6a65c116ca
Fix recent bug
2024-03-16 13:28:30 +13:00
Mike Dilger
e0d0a63066
Update systemd config files with ExecRestart
2024-03-16 13:12:09 +13:00
Mike Dilger
54bb5450f6
Reload config on HUP signal; change and synchronize default config
2024-03-16 12:57:53 +13:00
Mike Dilger
a701da6dda
update BEHAVIOR.md
2024-03-12 11:24:19 +13:00
Mike Dilger
f6c8d214a4
config.open_relay optionally run as an open public relay
2024-03-12 10:52:44 +13:00
Mike Dilger
dc4811c0ef
Missing config file options now take the default
2024-03-12 10:06:47 +13:00
Mike Dilger
d88b3cae06
fix contrib/chorus.toml
2024-03-05 11:07:30 +13:00
Mike Dilger
32699d9b2a
Use tc_index and ac_index
2024-03-05 10:57:19 +13:00
Mike Dilger
6d9868d745
Change definition of scraper in documentation
2024-03-05 10:57:19 +13:00
Mike Dilger
5a7f9fee7a
Log index counts and sizes
2024-03-05 10:57:16 +13:00
Mike Dilger
6ef2ebc871
Add tc_index and ac_index (not utilized yet)
2024-03-05 10:00:40 +13:00
Mike Dilger
e19174f124
Fix loop continue/break (affects performance only)
2024-03-05 10:00:40 +13:00
Mike Dilger
37d97b5abc
consistent renaming, remove a slightly wrong comment
2024-03-05 08:44:54 +13:00
Mike Dilger
437782e770
Two new config variables for allowing short scrapes
2024-03-05 08:27:42 +13:00
Mike Dilger
3ee285b7b7
store: Rename indexes; Improve scraping (use since and until on ci_index)
2024-03-05 08:13:57 +13:00
Mike Dilger
fda607a6a6
Version 1.1.1
v1.1.1
2024-03-02 13:12:26 +13:00
Mike Dilger
42be3c6243
sample.config.toml change
2024-03-02 13:10:47 +13:00
Mike Dilger
014a0ff7fe
cargo clippy
2024-03-02 13:10:41 +13:00
Mike Dilger
c86ab862ef
Fix issues around limit in multiple-group scans
2024-03-02 13:10:36 +13:00
Mike Dilger
4d9bd321ac
FIX: was opening iterators on the wrong databases!
2024-03-02 13:04:53 +13:00
Mike Dilger
acbe1132c7
impl Copy for Event (it is a slice, just a ptr and len)
2024-03-02 11:40:50 +13:00