explorer: Speed up cluster stats loading (#20916)

This commit is contained in:
Justin Starry 2021-10-23 11:51:10 -04:00 committed by GitHub
parent 791a2c8d1c
commit 4188554e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,9 @@ async function fetch(dispatch: Dispatch, cluster: Cluster, url: string) {
try {
const connection = new Connection(url, "finalized");
const supply = (await connection.getSupply()).value;
const supply = (
await connection.getSupply({ excludeNonCirculatingAccountsList: true })
).value;
// Update state if still connecting
dispatch((state) => {