diff --git a/CHANGELOG.md b/CHANGELOG.md index b475c7fb41..4293fef6ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/lib/waku.ts b/src/lib/waku.ts index 76b6a3b27a..ace3238d56 100644 --- a/src/lib/waku.ts +++ b/src/lib/waku.ts @@ -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 { - const desiredProtocols = protocols ?? [Protocols.Relay, Protocols.Store]; + const desiredProtocols = protocols ?? [Protocols.Relay]; const promises = [];