@clonegod/ttd-sol-common 1.0.186 → 1.0.188

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.
@@ -89,12 +89,14 @@ class TransactionResultChecker {
89
89
  const check_start_time = Date.now();
90
90
  const check_interval = parseInt(process.env.CHECK_TX_RESULT_INTERVAL_MILLS || '2000');
91
91
  const check_timeout = parseInt(process.env.CHECK_TX_RESULT_TIMEOUT_MILLS || '10000');
92
+ (0, dist_1.log_info)(`check transaction start: check_interval=${check_interval}, check_timeout=${check_timeout}`);
92
93
  if (check_interval >= check_timeout) {
94
+ (0, dist_1.log_warn)(`check_interval=${check_interval} >= check_timeout=${check_timeout}, check_tx_result_interval failed!`);
93
95
  return;
94
96
  }
95
97
  const intervalId = setInterval(() => __awaiter(this, void 0, void 0, function* () {
96
98
  this.check_count += 1;
97
- (0, dist_1.log_info)(`check transaction start: seq=[${this.check_count}], txhash= ${this.txid}, trace_id=${this.trace_id}`);
99
+ (0, dist_1.log_info)(`check transaction: seq=[${this.check_count}], txhash= ${this.txid}, trace_id=${this.trace_id}`);
98
100
  try {
99
101
  if (Date.now() - check_start_time < check_timeout) {
100
102
  let tx_result = yield this.connection.getParsedTransaction(this.txid, {
@@ -118,11 +120,9 @@ class TransactionResultChecker {
118
120
  this.event_emitter.emit(dist_1.TRANSACTION_STATE_FAILED, trade_result);
119
121
  }
120
122
  }
121
- if (dist_1.LOG.debug) {
122
- console.log('<====================================================');
123
- console.dir(trade_result, { depth: 8 });
124
- console.log('====================================================>');
125
- }
123
+ console.log('<====================================================');
124
+ console.dir(trade_result, { depth: 8 });
125
+ console.log('====================================================>');
126
126
  }
127
127
  else {
128
128
  clearInterval(intervalId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.186",
3
+ "version": "1.0.188",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",