explorer
explorer copied to clipboard
Replace `MultipleAccountsFetcher` with a `fetch` shim that coalesces account info requests coming from any code
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
- Visit https://explorer.solana.com/tx/2tmgfqVeqmqPdi2N18KFRvJwMj41ukiCKK7vJqQGGjvM1uRTY5LWjtoFAjWJ7Q4XZxcvfvvfQWkT5BhQGGhFpqyg
Screenshots
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