Open kostysh opened 1 year ago
I an using @chainsafe/libp2p-gossipsub version 7.0.0 and libp2p version 0.45.0 on Linux, node.js v18.
@chainsafe/libp2p-gossipsub
7.0.0
libp2p
0.45.0
Steps to reproduce:
directPeers
TypeError: Cannot read properties of undefined (reading 'add') at file:///.../node_modules/@chainsafe/libp2p-gossipsub/src/index.ts:549:53
Details: The error occurs during the try to set direct peer addresses in the addressBook (https://github.com/ChainSafe/js-libp2p-gossipsub/blob/f62859b346474ff3e29d59e31449b15d60e054d6/src/index.ts#L553). It seems that the new version of the libp2p has a different peerStore structure.
addressBook
peerStore
Sorry for the inconvenience 😓 but libp2p 0.45.0 introduced some breaking changes which have been addressed in #425 , so the gossipsub 8.0.0 release should include this fix.
8.0.0
I an using
@chainsafe/libp2p-gossipsub
version7.0.0
andlibp2p
version0.45.0
on Linux, node.js v18.Steps to reproduce:
directPeers
in thelibp2p
options object.libp2p
node with@chainsafe/libp2p-gossipsub
protocol.Details: The error occurs during the try to set direct peer addresses in the
addressBook
(https://github.com/ChainSafe/js-libp2p-gossipsub/blob/f62859b346474ff3e29d59e31449b15d60e054d6/src/index.ts#L553). It seems that the new version of thelibp2p
has a differentpeerStore
structure.