From 5366f85c35be7771b2ffab7f60d54125ef5cd09d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 6 Jan 2023 01:18:50 -0500 Subject: [PATCH] *Skip if relay has an error --- src/query/wisdom.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/query/wisdom.ts b/src/query/wisdom.ts index 2db7af9..6491361 100644 --- a/src/query/wisdom.ts +++ b/src/query/wisdom.ts @@ -103,6 +103,9 @@ export default class WisdomRpcQuery extends RpcQueryBase { for (const relay in this._response?.relays) { const resp = this._response?.relays[relay]; + if (resp?.error) { + continue; + } if ( validateTimestampedResponse( b4a.from(relay, "hex") as Buffer,