Skip to content

Commit

Permalink
fix: use higher commitment for blockhash to remove 'Minimum context s…
Browse files Browse the repository at this point in the history
…lot has not been reached' errors (#2170)

* use higher commitment for blockhash

* use higher commitment for blockhash
  • Loading branch information
guibescos authored Dec 5, 2024
1 parent 1ca8d79 commit 00859ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion target_chains/solana/sdk/js/solana_utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/solana-utils",
"version": "0.4.2",
"version": "0.4.3",
"description": "Utility functions for Solana",
"homepage": "https://pyth.network",
"main": "lib/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export class TransactionBuilder {
args: PriorityFeeConfig
): Promise<{ tx: VersionedTransaction; signers: Signer[] }[]> {
const blockhash = (
await this.connection.getLatestBlockhash({ commitment: "confirmed" })
await this.connection.getLatestBlockhash({ commitment: "finalized" })
).blockhash;

const jitoBundleSize =
Expand Down

0 comments on commit 00859ba

Please sign in to comment.