@clonegod/ttd-sol-common 1.0.152 → 1.0.153
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.
|
@@ -583,9 +583,10 @@ class RpcClient {
|
|
|
583
583
|
const serializedTransaction = transaction.serialize({ verifySignatures: false }).toString(encoding);
|
|
584
584
|
let jito_region = process.env.JITO_REGION || region;
|
|
585
585
|
let jitoApiUrl = `${types_1.JITO_API_URLS[jito_region]}/api/v1/bundles`;
|
|
586
|
-
const send_tx_jito_url = process.env.SEND_TX_JITO_URL;
|
|
587
|
-
const send_tx_jito_stratgy = process.env.SEND_TX_JITO_STRATEGY;
|
|
588
|
-
|
|
586
|
+
const send_tx_jito_url = process.env.SEND_TX_JITO_URL || '';
|
|
587
|
+
const send_tx_jito_stratgy = process.env.SEND_TX_JITO_STRATEGY || '';
|
|
588
|
+
console.log(this.getCurrentTPS(), `send jito start: send_tx_jito_url=${send_tx_jito_url}, send_tx_jito_stratgy=${send_tx_jito_stratgy}`);
|
|
589
|
+
if (!(0, dist_1.isEmpty)(send_tx_jito_url) && send_tx_jito_stratgy === 'mul_ips') {
|
|
589
590
|
const send_result = yield (0, dist_1.postJSON)(send_tx_jito_url, {
|
|
590
591
|
encoding,
|
|
591
592
|
encoded_tx: serializedTransaction,
|