Skip to content

Commit 00859ba

Browse files
authored
fix: use higher commitment for blockhash to remove 'Minimum context slot has not been reached' errors (#2170)
* use higher commitment for blockhash * use higher commitment for blockhash
1 parent 1ca8d79 commit 00859ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

target_chains/solana/sdk/js/solana_utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/solana-utils",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"description": "Utility functions for Solana",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

target_chains/solana/sdk/js/solana_utils/src/transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export class TransactionBuilder {
227227
args: PriorityFeeConfig
228228
): Promise<{ tx: VersionedTransaction; signers: Signer[] }[]> {
229229
const blockhash = (
230-
await this.connection.getLatestBlockhash({ commitment: "confirmed" })
230+
await this.connection.getLatestBlockhash({ commitment: "finalized" })
231231
).blockhash;
232232

233233
const jitoBundleSize =

0 commit comments

Comments
 (0)