trac-peer 0.1.76 → 0.1.78
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 +3 -3
- package/src/index.js +2 -0
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.
|
|
4
|
+
"version": "0.1.78",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"assert": "npm:bare-node-assert",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"child_process": "npm:bare-node-child-process",
|
|
38
38
|
"compact-encoding": "2.16.1",
|
|
39
39
|
"console": "npm:bare-node-console",
|
|
40
|
-
"corestore": "7.4.
|
|
40
|
+
"corestore": "7.4.1",
|
|
41
41
|
"crypto": "npm:bare-node-crypto",
|
|
42
42
|
"debounceify": "1.1.0",
|
|
43
43
|
"events": "npm:bare-node-events",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"http": "npm:bare-node-http",
|
|
48
48
|
"https": "npm:bare-node-https",
|
|
49
49
|
"hyperbee": "2.24.2",
|
|
50
|
-
"hypercore": "11.6.
|
|
50
|
+
"hypercore": "11.6.2",
|
|
51
51
|
"hypercore-crypto": "^3.4.0",
|
|
52
52
|
"hyperdht": "^6.20.5",
|
|
53
53
|
"hyperswarm": "^4.11.5",
|
package/src/index.js
CHANGED
|
@@ -97,6 +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
101
|
while (_this.msb.base.view.core.signedLength < op.value.msbsl) {
|
|
101
102
|
await new Promise( (resolve, reject) => {
|
|
102
103
|
_this.msb.base.view.core.once('append', resolve);
|
|
@@ -648,6 +649,7 @@ export class Peer extends ReadyResource {
|
|
|
648
649
|
_tx['dispatch'] = this.protocol_instance.prepared_transactions_content[tx].dispatch;
|
|
649
650
|
_tx['ipk'] = this.protocol_instance.prepared_transactions_content[tx].ipk;
|
|
650
651
|
_tx['wp'] = this.protocol_instance.prepared_transactions_content[tx].validator;
|
|
652
|
+
_tx['msbbs'] = this.msb.bootstrap();
|
|
651
653
|
delete this.tx_pool[tx];
|
|
652
654
|
delete this.protocol_instance.prepared_transactions_content[tx];
|
|
653
655
|
await this.base.append({ type: 'tx', key: tx, value: _tx });
|