Skip to content

Commit 9c76162

Browse files
authored
get finalized slots (#2029)
1 parent 47d6535 commit 9c76162

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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": "8.0.1",
3+
"version": "8.0.2",
44
"description": "Pyth Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

apps/price_pusher/src/solana/solana.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class SolanaPriceListener extends ChainPriceListener {
3131
// Checking the health of the Solana connection by checking the last block time
3232
// and ensuring it is not older than 30 seconds.
3333
private async checkHealth() {
34-
const slot = await this.pythSolanaReceiver.connection.getSlot();
34+
const slot = await this.pythSolanaReceiver.connection.getSlot("finalized");
3535
const blockTime = await this.pythSolanaReceiver.connection.getBlockTime(
3636
slot
3737
);

0 commit comments

Comments
 (0)