We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e82ce00 commit dfaa3fdCopy full SHA for dfaa3fd
ts/index.ts
@@ -192,11 +192,11 @@ class Gossipsub extends BasicPubsub {
192
const prune = this._handleGraft(peer, controlMsg.graft)
193
this._handlePrune(peer, controlMsg.prune)
194
195
- if (!iwant || !ihave || !prune) {
+ if (!iwant && !ihave && !prune) {
196
return
197
}
198
199
- const outRpc = createGossipRpc(ihave, { iwant: [iwant], prune })
+ const outRpc = createGossipRpc(ihave, { iwant: iwant && [iwant], prune })
200
this._sendRpc(peer, outRpc)
201
202
0 commit comments