@clonegod/ttd-sol-common 1.1.2 → 1.1.3

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.
@@ -690,6 +690,25 @@ class RpcClient {
690
690
  serializedMainTx
691
691
  ].join(',');
692
692
  const max_retry = Number(process.env.JITO_MAX_RETRIES || '0');
693
+ setTimeout(() => __awaiter(this, void 0, void 0, function* () {
694
+ var _a;
695
+ let gateway_list = ((_a = process.env.JITO_SEND_TX_GATEWAY_LIST) === null || _a === void 0 ? void 0 : _a.split(',').filter(Boolean)) || [];
696
+ gateway_list.forEach((host) => __awaiter(this, void 0, void 0, function* () {
697
+ let url = `http://${host}/solana/send_tx`;
698
+ (0, dist_1.postJSON)(url, {
699
+ encoding,
700
+ encoded_tx,
701
+ txid,
702
+ trace_id: '',
703
+ group_id,
704
+ max_retry
705
+ }).then(res => {
706
+ (0, dist_1.log_info)(`redirect tx to ${url} success`, res);
707
+ }).catch(err => {
708
+ (0, dist_1.log_error)(`redirect tx to ${url} failed`, err);
709
+ });
710
+ }));
711
+ }), 0);
693
712
  const send_result = yield (0, dist_1.postJSON)(send_tx_jito_url, {
694
713
  encoding,
695
714
  encoded_tx,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",