We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f96f706 + b726e7b commit 69cd463Copy full SHA for 69cd463
src/adapters/portal/index.ts
@@ -278,6 +278,10 @@ interface SolanaEvent {
278
}
279
280
const getSolanaEvents = async (fromSlot: number, toSlot: number): Promise<EventData[]> => {
281
+ // Old blocks may have been pruned by the RPC
282
+ if (fromSlot < 233000000) {
283
+ return [];
284
+ }
285
const response = await axios.get<SolanaEvent[]>(
286
`https://europe-west3-wormhole-message-db-mainnet.cloudfunctions.net/get-solana-events?fromSlot=${fromSlot}&toSlot=${toSlot}`
287
);
0 commit comments