*Add sourceExists

This commit is contained in:
Derrick Hammer 2023-01-15 03:49:26 -05:00
parent ae6609f0b0
commit b6469a6a45
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ export class PeerDiscovery {
this._sources.clear(); this._sources.clear();
} }
public sourceExists(name: string): boolean {
return this._sources.has(name);
}
public async discover( public async discover(
pubkey: string | Buffer, pubkey: string | Buffer,
options = {} options = {}