From 74c8915412634570b47f352ce5f9593b4f3881a0 Mon Sep 17 00:00:00 2001 From: themighty1 Date: Tue, 29 Mar 2022 23:22:51 +0300 Subject: [PATCH] update after server fix --- core/Main.js | 6 +++--- core/globals.js | 2 +- core/indexeddb.js | 2 +- core/oracles.js | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/Main.js b/core/Main.js index ed015fe..a7b9def 100644 --- a/core/Main.js +++ b/core/Main.js @@ -92,11 +92,11 @@ export class Main{ // check if we need to communicate with a new version of the notary server const notaryVersion = await getPref('notaryServerVersion'); if (notaryVersion === null){ - await addNewPreference('notaryServerVersion', 14); + await addNewPreference('notaryServerVersion', 16); await setPref('trustedOracle', {}); - } else if (notaryVersion < 14) { + } else if (notaryVersion < 16) { // the notary server was upgraded - await setPref('notaryServerVersion', 14); + await setPref('notaryServerVersion', 16); await setPref('trustedOracle', {}); } diff --git a/core/globals.js b/core/globals.js index 9aed444..5869e5e 100644 --- a/core/globals.js +++ b/core/globals.js @@ -3,7 +3,7 @@ export const globals = { // If this IP address becomes unavailable, Pagesigner will query backupUrl for // a new notary's IP address and will save the new IP address in the preferences. // defaultNotaryIP: '127.0.0.1', - defaultNotaryIP: '3.238.184.21', + defaultNotaryIP: '44.201.26.208', defaultNotaryPort: 10011, // backupUrl is the URL to query to get the IP address of another notary // server in case if defaultNotaryIP is unreachable diff --git a/core/indexeddb.js b/core/indexeddb.js index 67898e4..05e5232 100644 --- a/core/indexeddb.js +++ b/core/indexeddb.js @@ -18,7 +18,7 @@ export async function init_db() { preferences.add({name:'firstTimeInitCompletedv2', value:false}); preferences.add({name:'parsedCircuits', value:{}}); preferences.add({name:'trustedOracle', value:{}}); - preferences.add({name:'notaryServerVersion', value:14}); + preferences.add({name:'notaryServerVersion', value:16}); } }; dbReq.onsuccess = function (event) { diff --git a/core/oracles.js b/core/oracles.js index ab47550..57d9dd1 100644 --- a/core/oracles.js +++ b/core/oracles.js @@ -9,7 +9,8 @@ const rootsOfTrust = [ 'snap-07eda3ed4836f82fb', 'snap-023d50ee97873a1f0', 'snap-0e50af508006037dc', - 'snap-023dda76582a6b29f']; + 'snap-023dda76582a6b29f', + 'snap-027ade4f1002864da']; // URLFetcher trusted enclave measurements, see // https://github.com/tlsnotary/URLFetcher const URLFetcherPCR0 = 'f70217239e8a1cb0f3c010b842a279e2b8d30d3700d7e4722fef22291763479a13783dc76d5219fabbd7e5aa92a7b255';