From 4b43db6daaf0e04951f7632e5d854be4b2abea77 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 16 May 2022 15:47:54 +1000 Subject: [PATCH] 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. --- CHANGELOG.md | 4 ++++ src/lib/waku.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 = [];