changed default commitment to singleGossip

This commit is contained in:
dd 2021-02-13 16:11:40 -05:00
parent c42bcfc6cb
commit fac8a952a4
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ export class MangoClient {
): Promise<TransactionSignature> {
// TODO test on mainnet
transaction.recentBlockhash = (await connection.getRecentBlockhash('max')).blockhash
transaction.recentBlockhash = (await connection.getRecentBlockhash('singleGossip')).blockhash
transaction.setSigners(payer.publicKey, ...additionalSigners.map( a => a.publicKey ))
const signers = [payer].concat(additionalSigners)