@eclesia/indexer-engine 2.5.5 → 2.5.7

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.
@@ -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({
@@ -497,7 +497,7 @@ 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)
500
+ this.callABCI("/cosmos.staking.v1beta1.Query/Validators", vals, height, false)
501
501
  ]).catch((e) => {
502
502
  this.log.error("Error fetching block: " + height + " : " + e);
503
503
  return Promise.resolve([]);
@@ -6,7 +6,7 @@ const decodeAttr = (x) => {
6
6
  return x;
7
7
  }
8
8
  if (x instanceof Uint8Array) {
9
- return Buffer.from(x).toString();
9
+ return Buffer.from(x).toString() ?? "";
10
10
  }
11
11
  };
12
12
  exports.decodeAttr = decodeAttr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclesia/indexer-engine",
3
- "version": "2.5.5",
3
+ "version": "2.5.7",
4
4
  "description": "Core eclesia indexer engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",