From bf4e381d30d412ade296c0012fcc89922b187dbb Mon Sep 17 00:00:00 2001 From: Tejas Badadare Date: Tue, 9 Sep 2025 16:08:41 -0700 Subject: [PATCH 1/2] catch exceptions in jito onBundleResult --- apps/price_pusher/package.json | 2 +- apps/price_pusher/src/solana/command.ts | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/apps/price_pusher/package.json b/apps/price_pusher/package.json index 38f4442f88..0f3a51092d 100644 --- a/apps/price_pusher/package.json +++ b/apps/price_pusher/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/price-pusher", - "version": "10.1.0", + "version": "10.2.0", "description": "Pyth Price Pusher", "homepage": "https://pyth.network", "main": "lib/index.js", diff --git a/apps/price_pusher/src/solana/command.ts b/apps/price_pusher/src/solana/command.ts index af985292d5..52c6d02d0b 100644 --- a/apps/price_pusher/src/solana/command.ts +++ b/apps/price_pusher/src/solana/command.ts @@ -198,8 +198,8 @@ export default { // Fetch the account lookup table if provided const lookupTableAccount = addressLookupTableAccount ? await connection - .getAddressLookupTable(new PublicKey(addressLookupTableAccount)) - .then((result) => result.value ?? undefined) + .getAddressLookupTable(new PublicKey(addressLookupTableAccount)) + .then((result) => result.value ?? undefined) : undefined; let solanaPricePusher; @@ -274,10 +274,14 @@ export default { }; export const onBundleResult = (c: SearcherClient, logger: Logger) => { - c.onBundleResult( - () => undefined, - (err) => { - logger.error(err, "Error in bundle result"); - }, - ); + try { + c.onBundleResult( + () => undefined, + (err) => { + logger.error(err, "Error in bundle result"); + }, + ); + } catch (error) { + logger.error(error, "Exception in bundle result"); + } }; From c544a222455b5428714e7e52545ae50b7cc0d02e Mon Sep 17 00:00:00 2001 From: Tejas Badadare Date: Wed, 10 Sep 2025 07:41:54 -0700 Subject: [PATCH 2/2] fmt --- apps/price_pusher/src/solana/command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/price_pusher/src/solana/command.ts b/apps/price_pusher/src/solana/command.ts index 52c6d02d0b..87d63bd248 100644 --- a/apps/price_pusher/src/solana/command.ts +++ b/apps/price_pusher/src/solana/command.ts @@ -198,8 +198,8 @@ export default { // Fetch the account lookup table if provided const lookupTableAccount = addressLookupTableAccount ? await connection - .getAddressLookupTable(new PublicKey(addressLookupTableAccount)) - .then((result) => result.value ?? undefined) + .getAddressLookupTable(new PublicKey(addressLookupTableAccount)) + .then((result) => result.value ?? undefined) : undefined; let solanaPricePusher;