@clonegod/ttd-sol-common 1.0.151 → 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
- if (send_tx_jito_url && send_tx_jito_stratgy === 'mul_ips') {
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.151",
3
+ "version": "1.0.153",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "push": "npm run build && npm publish"
14
14
  },
15
15
  "dependencies": {
16
- "@clonegod/ttd-common": "1.1.4",
16
+ "@clonegod/ttd-common": "1.1.5",
17
17
  "@metaplex-foundation/mpl-token-metadata": "^2.5.2",
18
18
  "@solana/web3.js": "1.91.6",
19
19
  "rpc-websockets": "7.10.0",