From 1d89165538643bbf9eb8785e39bec8423ff6c9bd Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Thu, 12 Dec 2024 18:14:01 +0000 Subject: [PATCH] Revert "fix: use higher commitment for blockhash to remove 'Minimum context slot has not been reached' errors (#2170)" This reverts commit 00859ba27fc2442077b92172a34b4006b4abc80f. --- target_chains/solana/sdk/js/solana_utils/package.json | 2 +- target_chains/solana/sdk/js/solana_utils/src/transaction.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target_chains/solana/sdk/js/solana_utils/package.json b/target_chains/solana/sdk/js/solana_utils/package.json index 202ad72b5..40914d30a 100644 --- a/target_chains/solana/sdk/js/solana_utils/package.json +++ b/target_chains/solana/sdk/js/solana_utils/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/solana-utils", - "version": "0.4.3", + "version": "0.4.2", "description": "Utility functions for Solana", "homepage": "https://pyth.network", "main": "lib/index.js", diff --git a/target_chains/solana/sdk/js/solana_utils/src/transaction.ts b/target_chains/solana/sdk/js/solana_utils/src/transaction.ts index d375903b6..3eacc4cf7 100644 --- a/target_chains/solana/sdk/js/solana_utils/src/transaction.ts +++ b/target_chains/solana/sdk/js/solana_utils/src/transaction.ts @@ -227,7 +227,7 @@ export class TransactionBuilder { args: PriorityFeeConfig ): Promise<{ tx: VersionedTransaction; signers: Signer[] }[]> { const blockhash = ( - await this.connection.getLatestBlockhash({ commitment: "finalized" }) + await this.connection.getLatestBlockhash({ commitment: "confirmed" }) ).blockhash; const jitoBundleSize =