-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Include network id in gossip topics to keep networks isolated (#…
…861) * chore: cleaner logging when ignoring peers * feat: Include network id in gossip topics to keep peers homogeneous * Add changeset
- Loading branch information
1 parent
c5c0d98
commit 34fe54f
Showing
6 changed files
with
72 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@farcaster/hubble': minor | ||
--- | ||
|
||
Include network id in gossip topics to keep networks isolated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
import { GossipVersion } from '@farcaster/hub-nodejs'; | ||
|
||
// Network topic for Farcaster Messages | ||
export const NETWORK_TOPIC_PRIMARY = 'f_network_topic_primary'; | ||
|
||
// Network topic for Gossip Node ContactInfo messages | ||
export const NETWORK_TOPIC_CONTACT = 'f_network_topic_contact'; | ||
|
||
// The rate at which nodes republish ContactInfo | ||
export const GOSSIP_CONTACT_INTERVAL = 10_000; | ||
|
||
// List of all valid Gossip Topics | ||
export const GOSSIP_TOPICS = [NETWORK_TOPIC_CONTACT, NETWORK_TOPIC_PRIMARY]; | ||
|
||
// Current gossip protocol version | ||
export const GOSSIP_PROTOCOL_VERSION = GossipVersion.V1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters