*If we fail to get the RPC methods list from the peer, abort the connection

This commit is contained in:
Derrick Hammer 2023-03-29 17:25:26 -04:00
parent 63ce23fa26
commit ab6f7d76e2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,11 @@ export default class RpcNetwork {
});
const resp = await query.result;
if (resp.error) {
relay.end();
return;
}
if (resp.data) {
this._relays.set(pubkey, relay);