*Use new rpc protocol

This commit is contained in:
Derrick Hammer 2022-08-29 01:04:08 -04:00
parent 6d60a68674
commit 5b82f0a8d8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 3 deletions

View File

@ -257,12 +257,15 @@ export default class Handshake extends AbstractResolverModule {
} }
} }
private async query(tld: string, force: boolean): Promise<[] | boolean> { private async query(
const query = this.resolver.rpcNetwork.query( tld: string,
bypassCache: boolean
): Promise<[] | boolean> {
const query = this.resolver.rpcNetwork.wisdomQuery(
"getnameresource", "getnameresource",
"hns", "hns",
[tld], [tld],
force bypassCache
); );
const resp = await query.result; const resp = await query.result;