idStore - track network failure

feature/default_network_editable
kumavis 9 years ago
parent bd7a46312b
commit 9640a6c543
  1. 5
      app/scripts/lib/idStore.js

@ -131,7 +131,10 @@ IdentityStore.prototype.revealAccount = function(cb) {
}
IdentityStore.prototype.getNetwork = function(tries) {
if (tries === 0) return
if (tries === 0) {
this._currentState.network = 'error'
return
}
this.web3.version.getNetwork((err, network) => {
if (err) {
return this.getNetwork(tries - 1, cb)

Loading…
Cancel
Save