Change default to wait for Relay only

Store is not used by all applications, also, note all
nodes have store enabled.
Default value should prefer working software over feature complexity.
This commit is contained in:
Franck Royer 2022-05-16 15:47:54 +10:00
parent 7772c0afd6
commit 4b43db6daa
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Changed
- `waitForRemotePeer` waits for a Relay peer by default instead of Relay and Store.
## [0.23.0] - 2022-05-19
### Added

View File

@ -329,10 +329,10 @@ export class Waku {
* Wait for a remote peer to be ready given the passed protocols.
* Useful when using the [[CreateOptions.bootstrap]] with [[Waku.create]].
*
* @default Remote peer must have Waku Store and Waku Relay enabled.
* @default Remote peer must have Waku Relay enabled.
*/
async waitForRemotePeer(protocols?: Protocols[]): Promise<void> {
const desiredProtocols = protocols ?? [Protocols.Relay, Protocols.Store];
const desiredProtocols = protocols ?? [Protocols.Relay];
const promises = [];