config
This commit is contained in:
parent
3a3998263b
commit
df6fd7b474
2 changed files with 9 additions and 8 deletions
|
|
@ -94,6 +94,7 @@ var defaultConfig = {
|
||||||
totalCopayers: 3,
|
totalCopayers: 3,
|
||||||
spendUnconfirmed: true,
|
spendUnconfirmed: true,
|
||||||
verbose: 1,
|
verbose: 1,
|
||||||
|
// will duplicate itself after each try
|
||||||
reconnectDelay: 5000,
|
reconnectDelay: 5000,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -109,8 +110,7 @@ var defaultConfig = {
|
||||||
schema: 'https',
|
schema: 'https',
|
||||||
host: 'insight.bitpay.com',
|
host: 'insight.bitpay.com',
|
||||||
port: 443,
|
port: 443,
|
||||||
// will duplicate itself after each try
|
reconnectDelay: 1000,
|
||||||
reconnectDelay: 500,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// local encryption/security config
|
// local encryption/security config
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ angular.module('copayApp.controllers').controller('HeaderController',
|
||||||
};
|
};
|
||||||
var latestVersion = data[0].name.replace('v', '').split('.').map(toInt);
|
var latestVersion = data[0].name.replace('v', '').split('.').map(toInt);
|
||||||
var currentVersion = copay.version.split('.').map(toInt);
|
var currentVersion = copay.version.split('.').map(toInt);
|
||||||
var title = 'Copay '+data[0].name+' available.';
|
var title = 'Copay ' + data[0].name + ' available.';
|
||||||
var content;
|
var content;
|
||||||
if (currentVersion[0] < latestVersion[0]) {
|
if (currentVersion[0] < latestVersion[0]) {
|
||||||
content = 'It\'s important that you update your wallet at https://copay.io';
|
content = 'It\'s important that you update your wallet at https://copay.io';
|
||||||
|
|
@ -49,11 +49,12 @@ angular.module('copayApp.controllers').controller('HeaderController',
|
||||||
|
|
||||||
|
|
||||||
$rootScope.$watch('insightError', function(status) {
|
$rootScope.$watch('insightError', function(status) {
|
||||||
if (status === -1) {
|
if (status) {
|
||||||
notification.success('Networking restored', 'Connection to Insight re-established');
|
if (status === -1) {
|
||||||
//$rootScope.insightError = 0;
|
notification.success('Networking restored', 'Connection to Insight re-established');
|
||||||
} else if (status !== 0) {
|
} else if (!isNaN(status)) {
|
||||||
notification.error('Networking problem', 'Connection to Insight lost, reconnecting (attempt number '+status+')');
|
notification.error('Networking problem', 'Connection to Insight lost, reconnecting (attempt number ' + status + ')');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue