trac-peer 0.1.78 → 0.1.80

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trac-peer",
3
3
  "main": "src/index.js",
4
- "version": "0.1.78",
4
+ "version": "0.1.80",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "assert": "npm:bare-node-assert",
package/src/check.js CHANGED
@@ -525,6 +525,7 @@ class Check {
525
525
  value : { type : "any", nullable : true }
526
526
  },
527
527
  msbsl : { type : "number", integer : true, min : 0, max : Number.MAX_SAFE_INTEGER },
528
+ msbbs : { type : "is_hex" },
528
529
  ipk : { type : "is_hex" },
529
530
  wp : { type : "is_hex" }
530
531
  }
package/src/index.js CHANGED
@@ -97,7 +97,7 @@ export class Peer extends ReadyResource {
97
97
  if (op.type === 'tx') {
98
98
  if(b4a.byteLength(jsonStringify(op)) > _this.protocol_instance.txMaxBytes()) continue;
99
99
  if(false === this.check.tx(op)) continue;
100
- if(op.value.msbbs !== _this.msb.bootstrap()) continue;
100
+ if(op.value.msbbs !== _this.msb.bootstrap) continue;
101
101
  while (_this.msb.base.view.core.signedLength < op.value.msbsl) {
102
102
  await new Promise( (resolve, reject) => {
103
103
  _this.msb.base.view.core.once('append', resolve);
@@ -649,7 +649,7 @@ export class Peer extends ReadyResource {
649
649
  _tx['dispatch'] = this.protocol_instance.prepared_transactions_content[tx].dispatch;
650
650
  _tx['ipk'] = this.protocol_instance.prepared_transactions_content[tx].ipk;
651
651
  _tx['wp'] = this.protocol_instance.prepared_transactions_content[tx].validator;
652
- _tx['msbbs'] = this.msb.bootstrap();
652
+ _tx['msbbs'] = this.msb.bootstrap;
653
653
  delete this.tx_pool[tx];
654
654
  delete this.protocol_instance.prepared_transactions_content[tx];
655
655
  await this.base.append({ type: 'tx', key: tx, value: _tx });