trac-peer 0.1.79 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -2
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.79",
4
+ "version": "0.1.80",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "assert": "npm:bare-node-assert",
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 });