Skip to content

Commit

Permalink
Revert "nit: add warning of ping api issues" (#405)
Browse files Browse the repository at this point in the history
Reverts #401
  • Loading branch information
ngundotra authored Nov 11, 2024
1 parent 58019ed commit 44cd9d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
18 changes: 1 addition & 17 deletions app/components/LiveTransactionStatsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,7 @@ export function LiveTransactionStatsCard() {
<div className="card-header">
<h4 className="card-header-title">Live Transaction Stats</h4>
</div>

<TpsCardBody series={series} setSeries={setSeries} />
<div className="alert alert-warning m-2" role="alert">
Note: We are aware of an issue with ping statistic reporting. Ping statistics may not reflect actual
network performance. Please see{' '}
<a
href="https://www.validators.app/ping-thing?locale=en&network=mainnet"
className="text-white text-decoration-underline"
>
validators.app
</a>{' '}
for more information.
</div>
<PingStatsCardBody series={series} setSeries={setSeries} />
</div>
);
Expand Down Expand Up @@ -285,11 +273,7 @@ function PingStatsCardBody({ series, setSeries }: { series: Series; setSeries: S
return <PingStatsNotReady error={pingInfo.status === PingStatus.Error} retry={pingInfo.retry} />;
}

return (
<>
<PingBarChart pingInfo={pingInfo} series={series} setSeries={setSeries} />
</>
);
return <PingBarChart pingInfo={pingInfo} series={series} setSeries={setSeries} />;
}

type StatsNotReadyProps = { error: boolean; retry?: () => void };
Expand Down
5 changes: 1 addition & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ function StakingComponent() {

const activeStake = React.useMemo(() => {
if (voteAccounts && delinquentStake) {
return (
voteAccounts.current.reduce((prev, current) => prev + current.activatedStake, BigInt(0)) +
delinquentStake
);
return voteAccounts.current.reduce((prev, current) => prev + current.activatedStake, BigInt(0)) + delinquentStake;
}
}, [voteAccounts, delinquentStake]);

Expand Down

0 comments on commit 44cd9d9

Please sign in to comment.