trac-peer 0.0.29 → 0.0.30
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 +1 -1
- package/src/index.js +2 -5
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -57,9 +57,7 @@ export class Peer extends ReadyResource {
|
|
|
57
57
|
const _this = this;
|
|
58
58
|
this.base = new Autobase(this.store, this.bootstrap, {
|
|
59
59
|
valueEncoding: 'json',
|
|
60
|
-
|
|
61
60
|
ackInterval: 1000,
|
|
62
|
-
|
|
63
61
|
open(store) {
|
|
64
62
|
_this.bee = new Hyperbee(store.get('view'), {
|
|
65
63
|
extension: false,
|
|
@@ -68,7 +66,6 @@ export class Peer extends ReadyResource {
|
|
|
68
66
|
})
|
|
69
67
|
return _this.bee;
|
|
70
68
|
},
|
|
71
|
-
|
|
72
69
|
apply: async (nodes, view, base) => {
|
|
73
70
|
if(this.contract_instance === null) await this.initContract();
|
|
74
71
|
|
|
@@ -91,7 +88,7 @@ export class Peer extends ReadyResource {
|
|
|
91
88
|
console.log(`${op.key} appended`);
|
|
92
89
|
}
|
|
93
90
|
} else if (op.type === 'feature') {
|
|
94
|
-
if(!op.key || !op.value || !op.value.dispatch || op.value.dispatch.hash || op.value.dispatch.value) continue;
|
|
91
|
+
if(!op.key || !op.value || !op.value.dispatch || !op.value.dispatch.hash || !op.value.dispatch.value) continue;
|
|
95
92
|
const admin = await view.get('admin');
|
|
96
93
|
if(null !== admin &&
|
|
97
94
|
typeof op.value.dispatch === "object" &&
|
|
@@ -255,7 +252,7 @@ export class Peer extends ReadyResource {
|
|
|
255
252
|
delete this.protocol_instance.prepared_transactions_content[tx];
|
|
256
253
|
continue;
|
|
257
254
|
}
|
|
258
|
-
const msbsl = this.msb.base.view.core.signedLength
|
|
255
|
+
const msbsl = this.msb.base.view.core.signedLength;
|
|
259
256
|
const view_session = this.msb.base.view.checkout(msbsl);
|
|
260
257
|
const msb_tx = await view_session.get(tx);
|
|
261
258
|
await view_session.close();
|