Skip to content

Commit

Permalink
Merge pull request #1432 from nos/develop
Browse files Browse the repository at this point in the history
[RELEASE] 0.6.6
  • Loading branch information
DalderupMaurice authored Nov 18, 2021
2 parents fac5037 + 5362394 commit 8d09472
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"artifactName": "${productName}-${version}-${os}-${arch}.${ext}",
"win": {
"icon": "./static/icons/icon1024x1024.ico",
"timeStampServer": "http://timestamp.globalsign.com/scripts/timstamp.dll"
"timeStampServer": "http://timestamp.digicert.com"
},
"linux": {
"icon": "./static/icons/icon1024x1024.png"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repository": "https://www.github.com/nos/client",
"author": "nOS",
"homepage": "https://nos.io",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"main": "dist/main/main.js",
"license": "MIT",
Expand Down
9 changes: 7 additions & 2 deletions src/common/util/getRPCEndpoint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import fetch from 'node-fetch';
import { rpc, settings } from '@cityofzion/neon-js';
import https from 'https';

const httpsAgent = new https.Agent({
rejectUnauthorized: false
});

const BLACKLIST_URL = 'https://raw.githubusercontent.com/nos/rpc-status/master/blacklist.json';

Expand Down Expand Up @@ -29,7 +34,7 @@ async function fetchBlacklist() {
}

try {
const response = await fetch(BLACKLIST_URL);
const response = await fetch(BLACKLIST_URL, { agent: httpsAgent });
cachedBlacklist = await response.json();
return cachedBlacklist;
} catch (err) {
Expand Down Expand Up @@ -63,7 +68,7 @@ function raceToSuccess(promises) {

export default async function getRPCEndpoint(net) {
const apiEndpoint = getAPIEndpoint(net);
const response = await fetch(apiEndpoint);
const response = await fetch(apiEndpoint, { agent: httpsAgent });
const data = await response.json();
let nodes = data.sort((a, b) => b.height - a.height);

Expand Down

0 comments on commit 8d09472

Please sign in to comment.