Skip to content

Commit

Permalink
get finalized slots (#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos authored Oct 10, 2024
1 parent 47d6535 commit 9c76162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/price_pusher/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion apps/price_pusher/src/solana/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 9c76162

Please sign in to comment.