From af5084856a10784d9cdf5be5104be61c066d38c6 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Mon, 31 Aug 2020 17:39:26 +0800 Subject: [PATCH] Disable explorer block time fetching errors (#11931) --- explorer/src/providers/transactions/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/explorer/src/providers/transactions/index.tsx b/explorer/src/providers/transactions/index.tsx index 344f5c2e71..50eb029569 100644 --- a/explorer/src/providers/transactions/index.tsx +++ b/explorer/src/providers/transactions/index.tsx @@ -85,9 +85,11 @@ export async function fetchTransactionStatus( try { blockTime = await connection.getBlockTime(value.slot); } catch (error) { - Sentry.captureException(error, { - tags: { slot: `${value.slot}`, url }, - }); + if (cluster === Cluster.MainnetBeta) { + Sentry.captureException(error, { + tags: { slot: `${value.slot}` }, + }); + } } let timestamp: Timestamp = blockTime !== null ? blockTime : "unavailable";