From 8bff4de6c5b3239a1691e1a64aed8a8ca346b371 Mon Sep 17 00:00:00 2001 From: adityapk00 <31996805+adityapk00@users.noreply.github.com> Date: Mon, 5 Feb 2024 14:22:16 -0600 Subject: [PATCH] fix: Gossip seen TTL to 10 mins (#1661) * fix: Gossip seen TTL to 10 mins * changeset --- .changeset/yellow-wombats-confess.md | 5 +++++ apps/hubble/src/network/p2p/gossipNode.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/yellow-wombats-confess.md diff --git a/.changeset/yellow-wombats-confess.md b/.changeset/yellow-wombats-confess.md new file mode 100644 index 0000000000..87163bf2c5 --- /dev/null +++ b/.changeset/yellow-wombats-confess.md @@ -0,0 +1,5 @@ +--- +"@farcaster/hubble": patch +--- + +fix: Bump gossip TTL to 10 mins diff --git a/apps/hubble/src/network/p2p/gossipNode.ts b/apps/hubble/src/network/p2p/gossipNode.ts index 34fc4a297f..c6166ba4d3 100644 --- a/apps/hubble/src/network/p2p/gossipNode.ts +++ b/apps/hubble/src/network/p2p/gossipNode.ts @@ -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" });