topology-foundation / ts-topology

The official TypeScript implementation of Topology Protocol
https://topology-foundation.github.io/ts-topology/
MIT License
25 stars 15 forks source link

Change the way that bootstrap peers are passed #11

Closed d-roak closed 3 months ago

d-roak commented 3 months ago

We want to add a bootstrap peer and remove the connection (unless we don't find other peers). We also want to allow multiple bootstrap peers to try to exchange other peers' information.

Relevant code: https://github.com/topology-foundation/ts-topology/blob/c662c00eb9acabdb50b884191cdfaf7f545a7ad1/packages/network/src/node.ts#L54-L60