@clonegod/ttd-sol-common 1.0.165 → 1.0.166

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.
@@ -590,9 +590,10 @@ class RpcClient {
590
590
  if (!(0, dist_1.isEmpty)(send_tx_jito_url) && send_tx_jito_stratgy === 'mul_ips') {
591
591
  let { jito_use_separate_tx } = solana_trade_runtime;
592
592
  let group_id = solana_trade_runtime.group.id;
593
+ let recent_blockhash = blockhash.blockhash;
593
594
  let encoded_tx = serializedMainTx;
594
595
  if (jito_use_separate_tx) {
595
- let serializedTipTx = (yield axios_1.default.get(`${process.env.JITO_CREATE_TIP_TX_URL}?group_id=${group_id}&blockhash=${blockhash}&encoding=${encoding}&tip_amount=${tipAmount}`)).data.data;
596
+ let serializedTipTx = (yield axios_1.default.get(`${process.env.JITO_CREATE_TIP_TX_URL}?group_id=${group_id}&blockhash=${recent_blockhash}&encoding=${encoding}&tip_amount=${tipAmount}`)).data.data;
596
597
  encoded_tx = [serializedMainTx, serializedTipTx].join(',');
597
598
  }
598
599
  const send_result = yield (0, dist_1.postJSON)(send_tx_jito_url, {
@@ -600,9 +601,7 @@ class RpcClient {
600
601
  encoded_tx: serializedMainTx,
601
602
  txid,
602
603
  trace_id: '',
603
- group_id,
604
- blockhash,
605
- tip_amount: tipAmount,
604
+ group_id
606
605
  });
607
606
  (0, dist_1.log_info)(`sendJitoBundle (mul_ips)`, {
608
607
  txid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.165",
3
+ "version": "1.0.166",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",