From 6fa058d0a0a6141fcfd9405b4f25088647952515 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 22 Sep 2022 09:37:36 -0400 Subject: [PATCH] *should be >= --- src/query/wisdom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/wisdom.ts b/src/query/wisdom.ts index 8ee9ba4..f880f1f 100644 --- a/src/query/wisdom.ts +++ b/src/query/wisdom.ts @@ -96,7 +96,7 @@ export default class WisdomRpcQuery extends RpcQueryBase { const list: string[] = []; let available = this._network.relays; - while (list.length < this._network.maxRelays) { + while (list.length <= this._network.maxRelays) { const item = Math.floor(Math.random() * available.length); list.push(available[item]); available.splice(item, 1);