Commit Graph

762 Commits

Author SHA1 Message Date
Mike Dilger
f72b614b53 Show reposts 2023-02-03 20:40:00 +13:00
Mike Dilger
73f0051d75 Revert "Remove 'Repost' kinds"
This reverts commit feb3605564.
2023-02-03 20:17:53 +13:00
Mike Dilger
99b50539a0 update nostr-types 2023-02-03 20:17:07 +13:00
Mike Dilger
919b8a96b6 cargo clippy & cargo fmt 2023-02-03 19:56:56 +13:00
Mike Dilger
a375574393 Fix relay picker starting values: don't try for 3 relays for a pubkey that only posts to 2 2023-02-03 19:56:53 +13:00
Mike Dilger
de47722315 Update for nostr-types update 2023-02-03 15:04:43 +13:00
Mike Dilger
26bb213055 Update nostr-types [PublicKeyHex and IdHex have protected contents] 2023-02-03 14:11:52 +13:00
Mike Dilger
d9c68cb6f0 Avoid a panic (caused by some other bug which also should be found) 2023-02-03 11:15:42 +13:00
Mike Dilger
ba29c46249 Shutdown minions when they have zero subscriptions 2023-02-03 10:51:30 +13:00
Mike Dilger
2f424c862f Include content in our WebSocket Ping messages, in case that helps 2023-02-03 10:51:30 +13:00
Michael Dilger
8a013e133c
Merge pull request #188 from fiatjaf/month-fix-week
fix lowercase "m" for "month", make it uppercase. also add "w" for up to 7 weeks.
2023-02-03 08:12:53 +13:00
d39959d2a6
fix lowercase "m" for "month", make it uppercase. also add "w" for up to 7 weeks. 2023-02-02 09:45:43 -03:00
Mike Dilger
0b51467ffa When importing ncryptsec, save it to database 2023-02-02 09:02:59 +13:00
Mike Dilger
7b0a468f59 nip05 relays not found should not be an error. 2023-02-02 08:58:54 +13:00
Mike Dilger
3b2a650719 FIX freeze 2023-02-02 08:50:18 +13:00
Mike Dilger
12a2f0dfcb README notice about dealing with force-push 2023-02-02 08:49:49 +13:00
Mike Dilger
574d573058 bugfix in sql 2023-02-01 21:54:50 +13:00
Mike Dilger
cd16b54369 Improve last commit 2023-02-01 21:50:42 +13:00
Mike Dilger
c9d085deac Only request people's contact list up to once per day 2023-02-01 21:41:05 +13:00
Mike Dilger
0b66e66caf SCHEMA 20: person.contact_list_last_received 2023-02-01 21:40:15 +13:00
Mike Dilger
0b9d980066 Bugfix: Detect a previously undetected relay picker degenerate condition (all scores 0) 2023-02-01 21:04:56 +13:00
Mike Dilger
dd8513493c bugfix - blocking write 2023-02-01 20:26:11 +13:00
Mike Dilger
a4e3be7f32 fix: Update failure count in global relays too (for live feedback) 2023-02-01 20:09:24 +13:00
Mike Dilger
8553916cbf Relays: don't sort by rank, or they move when you click them 2023-02-01 19:52:01 +13:00
Mike Dilger
7d2f648e30 cargo clippy & cargo fmt 2023-02-01 19:42:40 +13:00
Mike Dilger
06eebd3564 Merge branch 'future' 2023-02-01 19:41:03 +13:00
Mike Dilger
e5cb7bde31 Relay management 2023-02-01 19:40:13 +13:00
Mike Dilger
164fb30dd0 Fix: minion to update globals data when updating database data (2 places) 2023-02-01 19:39:33 +13:00
Mike Dilger
e0bd21ed7d Schema 19 - relay.rank not null 2023-02-01 19:38:15 +13:00
Mike Dilger
517a8bdcab Fix excessive closing of websockets 2023-02-01 11:34:49 +13:00
Mike Dilger
9eb43a5064 Fix excessive closing of websockets 2023-02-01 11:18:39 +13:00
Mike Dilger
c3dfc4b897 Fix two max relays issues 2023-02-01 10:42:53 +13:00
Mike Dilger
38814c09e0 Fix: Don't pick more relays when maximum is hit 2023-02-01 09:48:16 +13:00
Mike Dilger
444f8febfe Minions should only listen for the pubkeys that were assigned by the RelayPicker. NOTE: we lost a feature:
When changing your following list, you have to restart gossip again. It doesn't resubscribe.
2023-01-31 21:18:53 +13:00
Mike Dilger
d4847a934e Before repicking, refresh person-relay scores in the picker 2023-01-31 21:13:49 +13:00
Mike Dilger
c8c9d394ee Rewrite relay picker: better, but we left some things incomplete:
This is better because when a relay fails us, we try other relays to recover.

But our handling is still incomplete:

* The messages to the Relays _still_ don't include the particular pubkeys to subscribe to, so they do all followed
* Person Relay scores never get refreshed as that information changes
* When your following list changes, this retained GLOBALS.relay_picker never assigns new people to existing minions
2023-01-31 20:59:17 +13:00
Mike Dilger
afc8da330f SCHEMA 18: delete records with urls that start or end in whitespace 2023-01-31 20:42:02 +13:00
Mike Dilger
66fc30d450 improve tracing output 2023-01-31 20:26:27 +13:00
Mike Dilger
d600250cb6 Simplification 2023-01-31 17:16:07 +13:00
Mike Dilger
c9d97f2c51 use relay_picker::pick_relays() in Overlord [still only being used at startup] 2023-01-31 09:32:19 +13:00
Mike Dilger
19dcfbb29a relay_picker::pick_relays() function to handle the looping aspect 2023-01-31 09:28:05 +13:00
Mike Dilger
cdc12e8fca RelayPicker::take(), to force it to choose a particular relay next 2023-01-31 09:16:59 +13:00
Mike Dilger
4a0eb4804b update nostr-types [fixes Url case issue] 2023-01-31 07:56:34 +13:00
Mike Dilger
345e2de88e Do not exit when encountering a bad relay URL in the database, just skip that row 2023-01-31 07:55:03 +13:00
Mike Dilger
f38cc472c8 SCHEMA 17 - crude deletion of relays ending in slash (it's not critical data) 2023-01-30 15:20:13 +13:00
Mike Dilger
9527fa78d6 MAJOR update of URL handling 2023-01-30 15:20:13 +13:00
Mike Dilger
2599282cb5 update nostr-types 2023-01-30 14:49:05 +13:00
Mike Dilger
64ff44a60d README remove call out of Damus client as it's not the only one to handle lightning tips anymore 2023-01-30 08:55:50 +13:00
Mike Dilger
2119ad3dd1 video links in README 2023-01-30 08:54:41 +13:00
Michael Dilger
6d4508109c
Merge pull request #177 from striezel-stash/actions-rs-replacement
Replace unmaintained actions-rs actions in CI workflows
2023-01-30 07:16:09 +13:00