Mike Dilger
5409de87cf
Merge branch 'master' into unstable
2024-06-23 14:17:08 +12:00
dtonon
6a7fe30d88
Fix the vertical alignment of the label in the switch component
2024-06-21 20:00:23 +02:00
dtonon
42130dc530
Navigation Panel: Review styles, ref #751
2024-06-21 19:53:57 +02:00
Mike Dilger
48b932b77b
Recompute pending when entering Notifications page
2024-06-21 13:10:32 +12:00
Mike Dilger
22ff39a589
cargo clippy
2024-06-21 12:50:53 +12:00
Mike Dilger
4398107c72
cargo fmt
2024-06-21 12:49:22 +12:00
Mike Dilger
f2cbc1e3d7
Pending: consider dm relay list when computing pending items
2024-06-21 12:49:03 +12:00
Mike Dilger
afece133e8
Strip out old storage code for databases prior to m19. IF YOU HAVE AN OLD DATABASE:
...
If you have an old database you must run gossip 0.9 or 0.10 at least once in order
to upgrade your database to something new enough for gossip 0.11 to recognize.
We intend to only expire code from 3 versions back.
2024-06-21 11:29:11 +12:00
Mike Dilger
8bb4ea0aaf
Pending items for setting up relays (of each class: READ, WRITE, DISCOVER, DM)
2024-06-21 10:45:24 +12:00
Mike Dilger
ad7f832863
In sending NIP-17 DMs, find our relays via our relay record bitflags, not our person_relay records
2024-06-21 10:12:21 +12:00
Mike Dilger
c0d6fd375c
When getting replies, also get deletes and other related (likes/zaps)
2024-06-21 09:39:29 +12:00
Mike Dilger
5d82a73bab
Fix transaction deadlock issue blocking list merge/overwrite since 21 May b59f8f48
2024-06-21 09:05:23 +12:00
Mike Dilger
e219decc7c
Fix transaction deadlock issue blocking list merge/overwrite since 21 May b59f8f48
2024-06-21 09:04:34 +12:00
Mike Dilger
4a987143db
More minion error exclusions
2024-06-21 09:04:34 +12:00
Bu5hm4nn
bc6258abdb
Navigation Panel: Add switch for offline mode, fixes #751
2024-06-20 17:48:40 +02:00
Mike Dilger
0649b63260
Presume all relays support EOSE at this point
2024-06-20 10:27:10 +12:00
Mike Dilger
673f1cd1f6
Minion: do not signal EVENT job completion until after all the OK messages for the job arrive
2024-06-20 10:23:31 +12:00
Mike Dilger
99ccd4dc8a
Don't disconnect from relay if we are waiting for an OK (doesn't quite work due to wrong overlord signalling)
2024-06-20 09:55:54 +12:00
Mike Dilger
2ca285fd68
Migration 39: flag reprocess relay lists is needed
2024-06-19 14:04:00 +12:00
Mike Dilger
c8ae74d85a
Reprocess relay lists reworked to handle kind 3 too
2024-06-19 13:57:10 +12:00
Mike Dilger
a4aba05ead
Simplify unused async
2024-06-19 13:01:12 +12:00
Mike Dilger
b4eb4b6281
cargo clippy
2024-06-19 12:14:59 +12:00
Mike Dilger
6d4b6befc3
fix: don't subscribe discover to empty lists, and do it after config/inbox/etc.
2024-06-19 12:01:30 +12:00
Mike Dilger
6978ac38e9
Migration 38: Relay3, should_avoid() time, replaces penalty box
2024-06-19 11:23:20 +12:00
Mike Dilger
51215700c3
Don't fetch nip11 for the same relay more than once per hour
2024-06-19 09:56:56 +12:00
Mike Dilger
83f3fa3083
fix: Don't exit a minion if it still has waiting subscriptions
2024-06-18 13:29:50 +12:00
Mike Dilger
f5bcb73110
Do not AUTH to a relay again if we have already AUTHed to it (either success or failure)
2024-06-18 12:54:29 +12:00
Mike Dilger
168482bf86
Fix corked AUTH subscriptions
2024-06-18 11:59:24 +12:00
Mike Dilger
95113c43c0
Fix possible race condition in engage_minion_inner
2024-06-18 11:23:09 +12:00
Mike Dilger
9516cd5bf6
Merge branch 'master' into unstable
2024-06-18 11:07:18 +12:00
Mike Dilger
fbf74545af
fix last
2024-06-18 11:06:12 +12:00
Mike Dilger
8e73ddaa21
bugfix: Prevent a panic and return a reasonable default
2024-06-18 11:06:08 +12:00
Mike Dilger
3207baa41a
Reorder process relationships so that ReplysTo supercedes Quotes
2024-06-18 11:06:01 +12:00
Mike Dilger
6da953dcae
fix: When getting relay hint, must be among seen-on relays
2024-06-18 11:05:54 +12:00
Mike Dilger
0ec1765b58
bugfix: When adding a tag for nevent, use it's first relay as the hint
2024-06-18 11:05:24 +12:00
Mike Dilger
8b6cb7c42b
Separate long-term subscription for giftwraps (since on new DM relays)
2024-06-18 09:56:47 +12:00
Mike Dilger
58381fc494
Revert "fix: Subscribe to DMs on DM relays too"
...
This reverts commit c7e73a342d
.
Giftwrap DMs are not subscribed in this fashion. Since they only tag the recipient,
they can't be per-channel subscribed. The must be globally subscribed.
2024-06-18 09:34:15 +12:00
Mike Dilger
c7e73a342d
fix: Subscribe to DMs on DM relays too
2024-06-18 09:30:44 +12:00
Mike Dilger
10c48c7dea
fix last
2024-06-18 09:30:05 +12:00
Mike Dilger
1541b0698b
bugfix: Prevent a panic and return a reasonable default
2024-06-18 09:23:23 +12:00
Mike Dilger
cb35077c30
Storage: Migration 37: Rebuild relationships
2024-06-17 15:51:17 +12:00
Mike Dilger
1505caead3
Reorder process relationships so that ReplysTo supercedes Quotes
2024-06-17 15:48:22 +12:00
Mike Dilger
08efc89d8a
fix: When getting relay hint, must be among seen-on relays
2024-06-17 11:41:47 +12:00
Mike Dilger
482d81ba0d
bugfix: When adding a tag for nevent, use it's first relay as the hint
2024-06-17 11:33:25 +12:00
Mike Dilger
9d0b441263
Rework get_best_relays():
...
* Always yield their relay-list declared relays first
* Take in a 'min' and if not achieved, yield additional relays in score order,
including using our own if we still can't achieve the minimum
* Use a bool to indicate 'write' instead of RelayUsage
* Adjust call sites: causes changes regarding min
2024-06-17 09:04:37 +12:00
Mike Dilger
72ffea6a7c
Remove now useless comment
2024-06-15 11:09:02 +12:00
Mike Dilger
8495c13d68
Fix NIP17 chat rumor to set kind=14 (not kind=1)
2024-06-14 16:28:50 +12:00
Mike Dilger
deb75b7198
cargo fmt & clippy
2024-06-14 13:15:59 +12:00
Mike Dilger
99b259f69e
Tag recipients in NIP-17 rumors (or these giftwraps won't show up in DM channels)
2024-06-14 13:15:00 +12:00
Mike Dilger
04214b4803
When sending DM17 giftwraps, don't error out because we can't unwrap the one for the counterparty
2024-06-14 13:00:55 +12:00