trac-peer 0.1.26 → 0.1.27
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 -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.
|
|
4
|
+
"version": "0.1.27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"assert": "npm:bare-node-assert",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"bare-crypto": "^1.4.3",
|
|
14
14
|
"bare-events": "^2.5.4",
|
|
15
15
|
"bare-fetch": "^2.2.1",
|
|
16
|
-
"bare-fs": "
|
|
16
|
+
"bare-fs": "4.0.2",
|
|
17
17
|
"bare-http1": "^4.0.2",
|
|
18
18
|
"bare-https": "^2.0.0",
|
|
19
19
|
"bare-inspector": "^4.0.1",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"stream": "npm:bare-node-stream",
|
|
69
69
|
"timers": "npm:bare-node-timers",
|
|
70
70
|
"tls": "npm:bare-node-tls",
|
|
71
|
-
"trac-wallet": "^0.0.
|
|
71
|
+
"trac-wallet": "^0.0.37",
|
|
72
72
|
"tty": "npm:bare-node-tty",
|
|
73
73
|
"url": "npm:bare-node-url",
|
|
74
74
|
"util": "npm:bare-node-util",
|
package/src/index.js
CHANGED
|
@@ -54,7 +54,7 @@ export class Peer extends ReadyResource {
|
|
|
54
54
|
this.connectedPeers = new Set();
|
|
55
55
|
this.options = options;
|
|
56
56
|
this.check = new Check();
|
|
57
|
-
this.dhtBootstrap = ['116.202.214.143:10001','116.202.214.149:10001', 'node1.hyperdht.org:49737', 'node2.hyperdht.org:49737', 'node3.hyperdht.org:49737'];
|
|
57
|
+
this.dhtBootstrap = [/*'116.202.214.143:10001','116.202.214.149:10001', */'node1.hyperdht.org:49737', 'node2.hyperdht.org:49737', 'node3.hyperdht.org:49737'];
|
|
58
58
|
this.dhtNode = new DHT({ bootstrap: this.dhtBootstrap });
|
|
59
59
|
this.seen_auto_add = {};
|
|
60
60
|
this.validator = null;
|
|
@@ -538,7 +538,7 @@ export class Peer extends ReadyResource {
|
|
|
538
538
|
if (null !== validator) {
|
|
539
539
|
validator = await _this.msb.base.view.get(validator.value);
|
|
540
540
|
if(_this.validator_stream !== null) return;
|
|
541
|
-
if(null !== validator && false !== validator.value.isWriter) {
|
|
541
|
+
if(null !== validator && false !== validator.value.isWriter && false === validator.value.isIndexer) {
|
|
542
542
|
const result = await _this.getValidatorWriterKey(validator.value.pub);
|
|
543
543
|
if(_this.validator_stream !== null) return;
|
|
544
544
|
if (null !== result) {
|