Skip to content

Commit

Permalink
fix: Reduce gossip TTL to 5 mins (#1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapk00 authored Feb 8, 2024
1 parent 52102c2 commit 5a70330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-timers-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/hubble": patch
---

fix: Reduce Gossip TTL to 5 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 @@ -32,7 +32,7 @@ import { sleep } from "../../utils/crypto.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 * 10;
export const GOSSIP_SEEN_TTL = 1000 * 60 * 5;

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

0 comments on commit 5a70330

Please sign in to comment.