@clonegod/ttd-sol-common 1.0.61 → 1.0.62

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.
@@ -485,7 +485,7 @@ class RpcClient {
485
485
  let error;
486
486
  do {
487
487
  try {
488
- const signature = yield this.connection.sendRawTransaction(transaction.serialize(), Object.assign({ maxRetries: 0, preflightCommitment: 'confirmed', skipPreflight: sendOptions.skipPreflight, minContextSlot }, sendOptions));
488
+ const signature = yield this.connection.sendRawTransaction(transaction.serialize(), Object.assign({ maxRetries: 3, preflightCommitment: 'confirmed', skipPreflight: sendOptions.skipPreflight, minContextSlot }, sendOptions));
489
489
  const abortSignal = AbortSignal.timeout(15000);
490
490
  yield this.connection.confirmTransaction({
491
491
  abortSignal,
@@ -19,7 +19,7 @@ class HeliusClient {
19
19
  this.signers = signers;
20
20
  this.sendOptions = {
21
21
  skipPreflight: true,
22
- maxRetries: 0
22
+ maxRetries: 3
23
23
  };
24
24
  let helius_api_key = process.env.HELIUS_API_KEY;
25
25
  let helius_mainnet_endpoint = `https://mainnet.helius-rpc.com/?api-key=${helius_api_key}`;
@@ -93,7 +93,7 @@ class TransactionResultChecker {
93
93
  let { group_id, unique_order_msg_id, order_send_time, order_recv_time, order_submit_time, aToB } = this.order_msg;
94
94
  let order_price = aToB ? bid.price : ask.price;
95
95
  let server_info = (0, dist_1.getServerInfo)();
96
- let total_order_time = (order_block_time + 500) - order_recv_time;
96
+ let total_order_time = (order_block_time + 1000) - order_recv_time;
97
97
  let order_end_time = Date.now();
98
98
  let start_time = order_recv_time;
99
99
  let end_time = order_end_time;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",