Skip to content

Commit

Permalink
Retry findTransaction in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Sep 6, 2022
1 parent 6f1241a commit b4e803e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ class TraceTransactionsScanner implements Scanner {
}
const result = await provider.rawApi.findTransaction({
inMessageHash: messageHash,
}).finally(() => release());
}).catch(() => ({ transaction: undefined })).finally(() => release());
if (state.stopped) {
return;
}
Expand Down

0 comments on commit b4e803e

Please sign in to comment.