Skip to content

Commit

Permalink
fix(proposer server) (#2193)
Browse files Browse the repository at this point in the history
* 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 00859ba.

* version
  • Loading branch information
guibescos authored Dec 12, 2024
1 parent 8080789 commit cc16040
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target_chains/solana/sdk/js/solana_utils/src/transaction.ts
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: "finalized" })
await this.connection.getLatestBlockhash({ commitment: "confirmed" })
).blockhash;

const jitoBundleSize =
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit cc16040

Please sign in to comment.