@cmts-dev/carmentis-sdk-core 1.2.10 → 1.2.11
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;
|