@eclesia/indexer-engine 2.3.1 → 2.4.0
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 +4 -4
- package/package.json +1 -1
package/dist/indexer/index.js
CHANGED
|
@@ -92,7 +92,7 @@ class EcleciaIndexer extends emitter_1.EclesiaEmitter {
|
|
|
92
92
|
...exports.defaultIndexerConfig,
|
|
93
93
|
...config
|
|
94
94
|
};
|
|
95
|
-
if (
|
|
95
|
+
if (this.config.minimal) {
|
|
96
96
|
this.blockQueue = new promise_queue_1.PromiseQueue(this.config.batchSize);
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
@@ -388,16 +388,16 @@ class EcleciaIndexer extends emitter_1.EclesiaEmitter {
|
|
|
388
388
|
const authzMsgs = tx_1.MsgExec.decode(msgs[i].value).msgs;
|
|
389
389
|
if (authzMsgs) {
|
|
390
390
|
for (let r = 0; r < authzMsgs.length; r++) {
|
|
391
|
-
this.log.silly("Indexer broadcasting msg for handling: " + authzMsgs[
|
|
391
|
+
this.log.silly("Indexer broadcasting msg for handling: " + authzMsgs[r].typeUrl);
|
|
392
392
|
const authzMsgEvents = msgevents?.reduce((events, evt) => {
|
|
393
393
|
if (evt.attributes.filter(x => (0, utils_1.decodeAttr)(x.key) == "authz_msg_index" && (0, utils_1.decodeAttr)(x.value) == "" + r).length > 0) {
|
|
394
394
|
events.push(evt);
|
|
395
395
|
}
|
|
396
396
|
return events;
|
|
397
397
|
}, []);
|
|
398
|
-
await this.asyncEmit(authzMsgs[
|
|
398
|
+
await this.asyncEmit(authzMsgs[r].typeUrl, {
|
|
399
399
|
value: {
|
|
400
|
-
tx: authzMsgs[
|
|
400
|
+
tx: authzMsgs[r].value,
|
|
401
401
|
events: authzMsgEvents
|
|
402
402
|
},
|
|
403
403
|
height,
|