@clonegod/ttd-sol-common 1.0.130 → 1.0.131

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.
@@ -717,11 +717,12 @@ class RpcClient {
717
717
  });
718
718
  const currentBlockHeight = yield solana_trade_runtime.connection.getBlockHeight();
719
719
  const lastValidBlockHeight = Math.min(blockhash.lastValidBlockHeight, currentBlockHeight + lastValidBlockHeightOffset);
720
- const timeout = 10000;
721
- const interval = 5000;
720
+ const timeout = 70000;
721
+ const interval = 10000;
722
722
  const startTime = Date.now();
723
723
  while (Date.now() - startTime < timeout ||
724
724
  (yield this.connection.getBlockHeight()) <= lastValidBlockHeight) {
725
+ yield new Promise((resolve) => setTimeout(resolve, interval));
725
726
  const bundleStatuses = yield this.getBundleStatuses([bundleId], jitoApiUrl);
726
727
  (0, dist_1.log_info)(`getBundleStatuses`, {
727
728
  txid,
@@ -738,7 +739,6 @@ class RpcClient {
738
739
  return bundleStatuses.value[0].transactions[0];
739
740
  }
740
741
  }
741
- yield new Promise((resolve) => setTimeout(resolve, interval));
742
742
  }
743
743
  let err = new Error('Bundle failed to confirm within the timeout period:' + timeout + 'ms');
744
744
  (0, dist_1.log_error)(`Bundle failed to confirm, txid=${txid}`, err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.130",
3
+ "version": "1.0.131",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",