@haven-fi/solauto-sdk 1.0.776 → 1.0.778
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -181,7 +181,7 @@ async function getQnComputeUnitPriceEstimate(umi, programId, blockheight = 50) {
|
|
181
181
|
return await (0, generalUtils_1.customRpcCall)(umi, "qn_estimatePriorityFees", {
|
182
182
|
last_n_blocks: blockheight,
|
183
183
|
account: programId.toString(),
|
184
|
-
api_version: 2
|
184
|
+
api_version: 2,
|
185
185
|
});
|
186
186
|
}
|
187
187
|
async function getComputeUnitPriceEstimate(umi, tx, prioritySetting, useAccounts) {
|
@@ -234,10 +234,10 @@ async function spamSendTransactionUntilConfirmed(connection, transaction, blockh
|
|
234
234
|
}
|
235
235
|
catch (e) { }
|
236
236
|
};
|
237
|
-
await sendTx();
|
238
237
|
const sendIntervalId = setInterval(async () => {
|
239
238
|
await sendTx();
|
240
239
|
}, spamInterval);
|
240
|
+
await new Promise((resolve) => setTimeout(resolve, spamInterval * 4));
|
241
241
|
if (!transactionSignature) {
|
242
242
|
throw new Error("No transaction signature found");
|
243
243
|
}
|
package/package.json
CHANGED
package/src/utils/solanaUtils.ts
CHANGED
@@ -331,7 +331,7 @@ export async function getQnComputeUnitPriceEstimate(
|
|
331
331
|
return await customRpcCall(umi, "qn_estimatePriorityFees", {
|
332
332
|
last_n_blocks: blockheight,
|
333
333
|
account: programId.toString(),
|
334
|
-
api_version: 2
|
334
|
+
api_version: 2,
|
335
335
|
});
|
336
336
|
}
|
337
337
|
|
@@ -403,12 +403,12 @@ async function spamSendTransactionUntilConfirmed(
|
|
403
403
|
} catch (e) {}
|
404
404
|
};
|
405
405
|
|
406
|
-
await sendTx();
|
407
|
-
|
408
406
|
const sendIntervalId = setInterval(async () => {
|
409
407
|
await sendTx();
|
410
408
|
}, spamInterval);
|
411
409
|
|
410
|
+
await new Promise((resolve) => setTimeout(resolve, spamInterval * 4));
|
411
|
+
|
412
412
|
if (!transactionSignature) {
|
413
413
|
throw new Error("No transaction signature found");
|
414
414
|
}
|