From 9c761626440da0c731d5e41e9b6d31aa5e909bf3 Mon Sep 17 00:00:00 2001 From: guibescos <59208140+guibescos@users.noreply.github.com> Date: Thu, 10 Oct 2024 20:41:06 +0100 Subject: [PATCH] get finalized slots (#2029) --- apps/price_pusher/package.json | 2 +- apps/price_pusher/src/solana/solana.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/price_pusher/package.json b/apps/price_pusher/package.json index 640d5423c4..0f76043c9d 100644 --- a/apps/price_pusher/package.json +++ b/apps/price_pusher/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/price-pusher", - "version": "8.0.1", + "version": "8.0.2", "description": "Pyth Price Pusher", "homepage": "https://pyth.network", "main": "lib/index.js", diff --git a/apps/price_pusher/src/solana/solana.ts b/apps/price_pusher/src/solana/solana.ts index d0bceac902..51bfb9aa8e 100644 --- a/apps/price_pusher/src/solana/solana.ts +++ b/apps/price_pusher/src/solana/solana.ts @@ -31,7 +31,7 @@ export class SolanaPriceListener extends ChainPriceListener { // Checking the health of the Solana connection by checking the last block time // and ensuring it is not older than 30 seconds. private async checkHealth() { - const slot = await this.pythSolanaReceiver.connection.getSlot(); + const slot = await this.pythSolanaReceiver.connection.getSlot("finalized"); const blockTime = await this.pythSolanaReceiver.connection.getBlockTime( slot );