Add NIP-11 relay synchronization and group management features
- Introduced a new `sync` package for managing NIP-11 relay information and relay group configurations. - Implemented a cache for NIP-11 documents, allowing retrieval of relay public keys and authoritative configurations. - Enhanced the sync manager to update peer lists based on authoritative configurations from relay group events. - Updated event handling to incorporate policy checks during event imports, ensuring compliance with relay rules. - Refactored various components to utilize the new `sha256-simd` package for improved performance. - Added comprehensive tests to validate the new synchronization and group management functionalities. - Bumped version to v0.24.1 to reflect these changes.
This commit is contained in:
@@ -271,6 +271,7 @@ var (
|
||||
PublicChatsList = &K{10005}
|
||||
BlockedRelaysList = &K{10006}
|
||||
SearchRelaysList = &K{10007}
|
||||
RelayGroupConfig = &K{10008}
|
||||
InterestsList = &K{10015}
|
||||
UserEmojiList = &K{10030}
|
||||
DMRelaysList = &K{10050}
|
||||
@@ -402,6 +403,7 @@ var Map = map[uint16]string{
|
||||
PublicChatsList.K: "Public Chats list",
|
||||
BlockedRelaysList.K: "Blocked Relays list",
|
||||
SearchRelaysList.K: "Search Relays list",
|
||||
RelayGroupConfig.K: "Relay Group Configuration",
|
||||
InterestsList.K: "Interests",
|
||||
UserEmojiList.K: "User Emoji list",
|
||||
DMRelaysList.K: "DM relays",
|
||||
|
||||
Reference in New Issue
Block a user