Skip to content

Commit

Permalink
fix endpoint key network requests
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Mar 5, 2024
1 parent aeed549 commit 19cf7ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion runtime/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,12 @@ export class Crypto {
// get endpoint public keys
// TODO: don't sign?, does not work when running as @+unyt2: await datex('#public.Blockchain.getEndpointPublicKeys(?)', [endpoint], Target.get('@+unyt2'), false)
try {
exported_keys = await Runtime.Blockchain.getEndpointPublicKeys(endpoint);
try {
exported_keys = await Runtime.Blockchain!.getEndpointPublicKeys(endpoint);
}
catch {
logger.debug("Blockchain request failed, trying network interface");
}
if (!exported_keys) exported_keys = await NetworkUtils.get_keys(endpoint);
// if (exported_keys) await this.storeKeys(endpoint, exported_keys);
if (!exported_keys) {
Expand Down

0 comments on commit 19cf7ea

Please sign in to comment.