js-waku/packages/peer-exchange
Danish Arora 124a29ebba
feat(static-sharding): filter peer connections per shards (#1626)
* add interface for `ShardInfo`

* enr: add deserialization logic & setup getters

* add sharding related utils

* utils: add shard<-> bytes conversion helpers

* pass `pubSubTopics` to `Waku`

* add `rs`/`rsv` details during discovery

* connection-manager: discard irrelevant peers

* add tests for static sharding - peer exchange

* update `ConnectionManager` tests to account for topic validity

* add js suffix to import

* address some comments

* move shardInfo encoding to ENR

* test: update for new API

* enr: add tests for serialisation & deserialisation

* address comment

* update test

* move getPeershardInfo to ConnectionManager and return ShardInfo instead of bytes

* update encoding and decoding relay shards to also factor for shards>64

* relay shard encoding decoding: use DataView and verbose spec tests

* improve tests for relay shard encoding decoding

* rm: only

* improve log message for unconfigured pubsub topic

* minor improvement

* fix: buffer <> Uint8array problems with shard decoding

* fix: test

* rm: only
2023-10-10 20:18:02 +05:30
..
src feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30
.eslintrc.cjs chore: upgrade libp2p and related deps (#1482) 2023-08-16 20:18:13 +05:30
CHANGELOG.md chore: release master (#1558) 2023-09-11 13:27:24 +02:00
package.json chore: upgrade engine to 18 (#1604) 2023-09-22 14:37:34 +05:30
rollup.config.js chore: upgrade libp2p and related deps (#1482) 2023-08-16 20:18:13 +05:30
tsconfig.dev.json chore: extract exports path from package.json for rollup 2023-03-01 15:46:21 +11:00
tsconfig.json chore: fix peer discovery peer-exchange (#1069) 2023-01-04 14:35:44 +05:30
typedoc.json chore: update typescript (#1528) 2023-09-21 10:57:37 +02:00