Skip to content

Commit

Permalink
fix: Gossip seen TTL to 10 mins (#1661)
Browse files Browse the repository at this point in the history
* fix: Gossip seen TTL to 10 mins

* changeset
  • Loading branch information
adityapk00 authored Feb 5, 2024
1 parent 248996d commit 8bff4de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/yellow-wombats-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/hubble": patch
---

fix: Bump gossip TTL to 10 mins
2 changes: 1 addition & 1 deletion apps/hubble/src/network/p2p/gossipNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { PeerScore } from "network/sync/peerScore.js";
/** The maximum number of pending merge messages before we drop new incoming gossip or sync messages. */
export const MAX_MESSAGE_QUEUE_SIZE = 100_000;
/** The TTL for messages in the seen cache */
export const GOSSIP_SEEN_TTL = 1000 * 60 * 5;
export const GOSSIP_SEEN_TTL = 1000 * 60 * 10;

const log = logger.child({ component: "GossipNode" });
const workerLog = logger.child({ component: "GossipNodeWorker" });
Expand Down

0 comments on commit 8bff4de

Please sign in to comment.