@@ -118,11 +118,8 @@ const defaultsDeep = require('@nodeutils/defaults-deep')
118
118
const Protector = require (' libp2p-pnet' )
119
119
120
120
class Node extends libp2p {
121
- constructor (_peerInfo , _peerBook , _options ) {
121
+ constructor (_options ) {
122
122
const defaults = {
123
- peerInfo: _peerInfo, // The Identity of your Peer
124
- peerBook: _peerBook, // Where peers get tracked, if undefined libp2p will create one instance
125
-
126
123
// The libp2p modules for this libp2p bundle
127
124
modules: {
128
125
transport: [
@@ -136,12 +133,11 @@ class Node extends libp2p {
136
133
connEncryption: [
137
134
SECIO
138
135
],
139
- connProtector: new Protector (/* protector specific opts*/ ),
136
+ // Encryption for private networks. Needs additional private key to work
137
+ // connProtector: new Protector(/*protector specific opts*/),
140
138
peerDiscovery: [
141
139
MulticastDNS
142
140
],
143
- peerRouting: {}, // Currently both peerRouting and contentRouting are patched through the DHT,
144
- contentRouting: {}, // this will change once we factor that into two modules, for now do the following line:
145
141
dht: DHT // DHT enables PeerRouting, ContentRouting and DHT itself components
146
142
},
147
143
@@ -158,8 +154,6 @@ class Node extends libp2p {
158
154
}
159
155
// .. other discovery module options.
160
156
},
161
- peerRouting: {},
162
- contentRouting: {},
163
157
relay: { // Circuit Relay options
164
158
enabled: false ,
165
159
hop: {
0 commit comments