@eclesia/indexer-engine 2.5.8 → 2.5.9

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.
@@ -458,21 +458,21 @@ class EcleciaIndexer extends emitter_1.EclesiaEmitter {
458
458
  }
459
459
  }
460
460
  async callABCI(path, data, height, adHoc = true) {
461
- const timeout = new Promise((resolve) => {
462
- setTimeout(resolve, 30000);
463
- });
464
- const abciq = await Promise.race([
465
- (adHoc ? this.client : this.blockClient).abciQuery({
461
+ try {
462
+ const abciq = await (adHoc ? this.client : this.blockClient).abciQuery({
466
463
  path,
467
464
  data,
468
465
  height: height
469
- }),
470
- timeout
471
- ]);
472
- if (abciq) {
473
- return abciq.value;
466
+ });
467
+ if (abciq) {
468
+ return abciq.value;
469
+ }
470
+ else {
471
+ this.setStatus("FAILED");
472
+ throw new Error("RPC not responding. Query at: " + path);
473
+ }
474
474
  }
475
- else {
475
+ catch (_e) {
476
476
  this.setStatus("FAILED");
477
477
  throw new Error("RPC not responding. Query at: " + path);
478
478
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclesia/indexer-engine",
3
- "version": "2.5.8",
3
+ "version": "2.5.9",
4
4
  "description": "Core eclesia indexer engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",