@eclesia/indexer-engine 2.5.4 → 2.5.6

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.
@@ -425,8 +425,8 @@ class EcleciaIndexer extends emitter_1.EclesiaEmitter {
425
425
  const toIndex = Promise.all([
426
426
  this.blockClient.block(i),
427
427
  this.blockClient.blockResults(i)
428
- ]).catch((_e) => {
429
- this.log.error("Error fetching block: " + i);
428
+ ]).catch((e) => {
429
+ this.log.error("Error fetching block: " + i + " : " + e);
430
430
  return Promise.resolve([]);
431
431
  });
432
432
  this.blockQueue.enqueue(toIndex);
@@ -438,8 +438,8 @@ class EcleciaIndexer extends emitter_1.EclesiaEmitter {
438
438
  this.blockClient.block(i),
439
439
  this.blockClient.blockResults(i),
440
440
  this.callABCI("/cosmos.staking.v1beta1.Query/Validators", vals, i, false)
441
- ]).catch((_e) => {
442
- this.log.error("Error fetching block: " + i);
441
+ ]).catch((e) => {
442
+ this.log.error("Error fetching block: " + i + " : " + e);
443
443
  return Promise.resolve([]);
444
444
  });
445
445
  this.blockQueue.enqueue(toIndex);
@@ -459,7 +459,7 @@ class EcleciaIndexer extends emitter_1.EclesiaEmitter {
459
459
  }
460
460
  async callABCI(path, data, height, adHoc = true) {
461
461
  const timeout = new Promise((resolve) => {
462
- setTimeout(resolve, 10000);
462
+ setTimeout(resolve, 30000);
463
463
  });
464
464
  const abciq = await Promise.race([
465
465
  (adHoc ? this.client : this.blockClient).abciQuery({
@@ -486,8 +486,8 @@ class EcleciaIndexer extends emitter_1.EclesiaEmitter {
486
486
  this.blockQueue.enqueue(Promise.all([
487
487
  this.client.block(height),
488
488
  this.client.blockResults(height)
489
- ]).catch((_e) => {
490
- this.log.error("Error fetching block: " + height);
489
+ ]).catch((e) => {
490
+ this.log.error("Error fetching block: " + height + " : " + e);
491
491
  return Promise.resolve([]);
492
492
  }));
493
493
  }
@@ -497,9 +497,9 @@ class EcleciaIndexer extends emitter_1.EclesiaEmitter {
497
497
  this.blockQueue.enqueue(Promise.all([
498
498
  this.client.block(height),
499
499
  this.client.blockResults(height),
500
- this.callABCI("/cosmos.staking.v1beta1.Query/Validators", vals, height)
501
- ]).catch((_e) => {
502
- this.log.error("Error fetching block: " + height);
500
+ this.callABCI("/cosmos.staking.v1beta1.Query/Validators", vals, height, false)
501
+ ]).catch((e) => {
502
+ this.log.error("Error fetching block: " + height + " : " + e);
503
503
  return Promise.resolve([]);
504
504
  }));
505
505
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclesia/indexer-engine",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "Core eclesia indexer engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",