update after server fix

This commit is contained in:
themighty1
2022-03-29 23:22:51 +03:00
parent 5b49addbe9
commit 74c8915412
4 changed files with 7 additions and 6 deletions

View File

@@ -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', {});
}

View File

@@ -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

View File

@@ -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) {

View File

@@ -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';