Disable explorer block time fetching errors (#11931)
This commit is contained in:
parent
f385af25e5
commit
af5084856a
|
@ -85,10 +85,12 @@ export async function fetchTransactionStatus(
|
||||||
try {
|
try {
|
||||||
blockTime = await connection.getBlockTime(value.slot);
|
blockTime = await connection.getBlockTime(value.slot);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
if (cluster === Cluster.MainnetBeta) {
|
||||||
Sentry.captureException(error, {
|
Sentry.captureException(error, {
|
||||||
tags: { slot: `${value.slot}`, url },
|
tags: { slot: `${value.slot}` },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
let timestamp: Timestamp =
|
let timestamp: Timestamp =
|
||||||
blockTime !== null ? blockTime : "unavailable";
|
blockTime !== null ? blockTime : "unavailable";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue