File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
packages/replication-server/src Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,15 @@ async function denyDialMultiaddr(addr: Multiaddr) {
38
38
return true
39
39
}
40
40
41
+ if (
42
+ bootstrapList
43
+ . map ( multiaddr )
44
+ . map ( ( addr ) => addr . getPeerId ( ) ?. toString ( ) )
45
+ . indexOf ( peerId . toString ( ) )
46
+ ) {
47
+ return true
48
+ }
49
+
41
50
return false
42
51
}
43
52
@@ -105,11 +114,11 @@ export const options: Libp2pOptions<ServiceMap> = {
105
114
fallbackToFloodsub : false ,
106
115
allowPublishToZeroPeers : true ,
107
116
globalSignaturePolicy : "StrictNoSign" ,
108
- directPeers : bootstrapList . map ( multiaddr ) . map ( ( addr ) => {
109
- const id = addr . getPeerId ( )
110
- assert ( id !== null )
111
- return { id : peerIdFromString ( id ) , addrs : [ addr ] }
112
- } ) ,
117
+ // directPeers: bootstrapList.map(multiaddr).map((addr) => {
118
+ // const id = addr.getPeerId()
119
+ // assert(id !== null)
120
+ // return { id: peerIdFromString(id), addrs: [addr] }
121
+ // }),
113
122
scoreParams : {
114
123
behaviourPenaltyWeight : - 1.0 , // 1/10th of default
115
124
retainScore : 10 * 1000 , // 10 seconds, instead of 1 hour
You can’t perform that action at this time.
0 commit comments