@eclesia/indexer-engine 2.5.4 → 2.5.5
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.
- package/dist/indexer/index.js +8 -8
- package/package.json +1 -1
package/dist/indexer/index.js
CHANGED
|
@@ -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((
|
|
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((
|
|
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);
|
|
@@ -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((
|
|
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
|
}
|
|
@@ -498,8 +498,8 @@ class EcleciaIndexer extends emitter_1.EclesiaEmitter {
|
|
|
498
498
|
this.client.block(height),
|
|
499
499
|
this.client.blockResults(height),
|
|
500
500
|
this.callABCI("/cosmos.staking.v1beta1.Query/Validators", vals, height)
|
|
501
|
-
]).catch((
|
|
502
|
-
this.log.error("Error fetching block: " + height);
|
|
501
|
+
]).catch((e) => {
|
|
502
|
+
this.log.error("Error fetching block: " + height + " : " + e);
|
|
503
503
|
return Promise.resolve([]);
|
|
504
504
|
}));
|
|
505
505
|
}
|