@cmts-dev/carmentis-sdk-core 1.2.10 → 1.2.12
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.
|
@@ -12059,9 +12059,7 @@ var { NEVER: hx, ALWAYS: gx, DECIMAL_ROUND: _x, DECIMAL_FIT: vx } = Rb, yx = 204
|
|
|
12059
12059
|
return e;
|
|
12060
12060
|
}
|
|
12061
12061
|
async getMicroblock(e) {
|
|
12062
|
-
this.logger.debug(`Accessing microblock at height ${e} of vb`);
|
|
12063
|
-
for (let e of this.microblockHashByHeight.entries()) this.logger.debug(`\t- Height ${e[0]}: ${k.binaryToHexa(e[1])}`);
|
|
12064
|
-
if (e < 1) throw new i(`Cannot retrieve microblock at height strictly lower than 1: got ${e}`);
|
|
12062
|
+
if (this.logger.debug(`Accessing microblock at height ${e} of vb`), e < 1) throw new i(`Cannot retrieve microblock at height strictly lower than 1: got ${e}`);
|
|
12065
12063
|
if (this.getHeight() < e) return await this.microblockSearchFailureFallback.onMicroblockSearchFailureForExceedingHeight(this, e);
|
|
12066
12064
|
let t = this.microblockByHeight.get(e);
|
|
12067
12065
|
if (t !== void 0) return t;
|
|
@@ -12472,7 +12470,8 @@ var { NEVER: hx, ALWAYS: gx, DECIMAL_ROUND: _x, DECIMAL_FIT: vx } = Rb, yx = 204
|
|
|
12472
12470
|
[Z.ANY, D.APP_LEDGER_SHARED_SECRET],
|
|
12473
12471
|
[Z.ANY, D.APP_LEDGER_CHANNEL_CREATION],
|
|
12474
12472
|
[Z.ANY, D.APP_LEDGER_CHANNEL_INVITATION],
|
|
12475
|
-
[Z.ANY, D.ALLOWED_ADDITIONAL_WRITER]
|
|
12473
|
+
[Z.ANY, D.ALLOWED_ADDITIONAL_WRITER],
|
|
12474
|
+
[Z.ANY, D.CUSTOM]
|
|
12476
12475
|
]), t.expects(Z.ANY, D.AUXILIARY_SIGNATURE), t.expects(Z.ONE, D.SIGNATURE), t.endsHere(), !0;
|
|
12477
12476
|
} catch (e) {
|
|
12478
12477
|
return typeof e == "string" && this.logger.error(`Microblock structure error details: ${e}`), e instanceof Error && (e instanceof s ? this.logger.error(`Microblock structure error: ${e.message}`) : this.logger.error(`An unexpected error occurred during structure checking: ${e.message} at ${e.stack}`)), !1;
|