This commit is contained in:
Manuel Araoz 2014-06-30 11:53:20 -03:00
parent 3a3998263b
commit df6fd7b474
2 changed files with 9 additions and 8 deletions

View File

@ -94,6 +94,7 @@ var defaultConfig = {
totalCopayers: 3,
spendUnconfirmed: true,
verbose: 1,
// will duplicate itself after each try
reconnectDelay: 5000,
},
@ -109,8 +110,7 @@ var defaultConfig = {
schema: 'https',
host: 'insight.bitpay.com',
port: 443,
// will duplicate itself after each try
reconnectDelay: 500,
reconnectDelay: 1000,
},
// local encryption/security config

View File

@ -49,12 +49,13 @@ angular.module('copayApp.controllers').controller('HeaderController',
$rootScope.$watch('insightError', function(status) {
if (status) {
if (status === -1) {
notification.success('Networking restored', 'Connection to Insight re-established');
//$rootScope.insightError = 0;
} else if (status !== 0) {
} else if (!isNaN(status)) {
notification.error('Networking problem', 'Connection to Insight lost, reconnecting (attempt number ' + status + ')');
}
}
});
// Init socket handlers (with no wallet yet)