Skip to content

Commit c1c20a9

Browse files
fix(price-pusher/solana): Swallow exceptions in jito onBundleResult (#3037)
* catch exceptions in jito onBundleResult * fmt
1 parent 860f547 commit c1c20a9

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

apps/price_pusher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/price-pusher",
3-
"version": "10.1.0",
3+
"version": "10.2.0",
44
"description": "Pyth Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

apps/price_pusher/src/solana/command.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,14 @@ export default {
274274
};
275275

276276
export const onBundleResult = (c: SearcherClient, logger: Logger) => {
277-
c.onBundleResult(
278-
() => undefined,
279-
(err) => {
280-
logger.error(err, "Error in bundle result");
281-
},
282-
);
277+
try {
278+
c.onBundleResult(
279+
() => undefined,
280+
(err) => {
281+
logger.error(err, "Error in bundle result");
282+
},
283+
);
284+
} catch (error) {
285+
logger.error(error, "Exception in bundle result");
286+
}
283287
};

0 commit comments

Comments
 (0)