Merge pull request #3039 from Bilb/fix-log-testnet-ons-fail

fix: log that onsresolve won't work when on testnet
pull/3041/head
Audric Ackermann 1 year ago committed by GitHub
commit d387e0f1a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,4 +1,5 @@
import _, { range } from 'lodash';
import { isTestNet } from '../../../shared/env_vars';
import { getSodiumRenderer } from '../../crypto';
import {
fromHexToArray,
@ -35,6 +36,10 @@ async function getSessionIDForOnsName(onsNameCase: string) {
const nameHash = sodium.crypto_generichash(sodium.crypto_generichash_BYTES, nameAsData);
const base64EncodedNameHash = fromUInt8ArrayToBase64(nameHash);
if (isTestNet()) {
window.log.info('OnsResolve response are not registered to anything on testnet');
}
const onsResolveRequests = buildOnsResolveRequests(base64EncodedNameHash);
// we do this request with validationCount snodes

Loading…
Cancel
Save