explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Replace `MultipleAccountsFetcher` with a `fetch` shim that coalesces account info requests coming from any code

Open steveluscher opened this issue 9 months ago • 4 comments

Describe the bug The code that's supposed to coalesce multiple account fetches behind a single getMultipleAccounts is not doing that. They're all getting coalesced into batches of 1.

To Reproduce

  1. Visit https://explorer.solana.com/tx/2tmgfqVeqmqPdi2N18KFRvJwMj41ukiCKK7vJqQGGjvM1uRTY5LWjtoFAjWJ7Q4XZxcvfvvfQWkT5BhQGGhFpqyg

Screenshots image

Additional context

This code, here.

https://github.com/solana-labs/explorer/blob/15a5268a1729168230de077c6758e1ad62f9ec52/app/providers/accounts/index.tsx#L135-L145

Suspicious function name in the stack trace: findAllByMintList.

Suggested implementation

https://github.com/solana-labs/explorer/pull/298#issuecomment-1734377246

steveluscher avatar Sep 22 '23 15:09 steveluscher