瀏覽代碼

fix(proposer server) (#2193)

* remove min slot check

* Revert "fix: use higher commitment for blockhash to remove 'Minimum context slot has not been reached' errors (#2170)"

This reverts commit 00859ba27fc2442077b92172a34b4006b4abc80f.

* version
guibescos 11 月之前
父節點
當前提交
cc16040038
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      target_chains/solana/sdk/js/solana_utils/src/transaction.ts

+ 1 - 2
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 =
@@ -512,7 +512,6 @@ export async function sendTransactions(
         // Set this manually so that the default is skipped
         maxRetries: 0,
         preflightCommitment: "confirmed",
-        minContextSlot: blockhashResult.context.slot,
       });
     }
     if (confirmedTx?.err) {