emerald-wallet icon indicating copy to clipboard operation
emerald-wallet copied to clipboard

Failed to fetch

Open teknowill opened this issue 6 years ago • 3 comments

using 3.11 asks me to restart and update after 3 or so days running. Still do not see latest total changes and ledger entries, always a 1 or more behind unless i close and reopen

TypeError: Failed to fetch 
 While processing action: 
 function (dispatch, getState, api) {
    dispatch({ type: _actionTypes2.default.LOADING });

    var chain = currentChain(getState());
    var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
    return api.emerald.listAccounts(chain, showHidden).then(function (result) {
      dispatch({
        type: _actionTypes2.default.SET_LIST,
        accounts: result
      });

      return dispatch(fetchHdPaths()).then(function () {
        return dispatch(fetchBalances(result.map(function (account) {
          return account.address;
        })));
      });
    });
  }

teknowill avatar Nov 23 '18 19:11 teknowill

thanks for the issue. This is odd! Are you running on mainnet / local geth?

Have you completed syncing?

BelfordZ avatar Nov 24 '18 18:11 BelfordZ

mainnet full node. windows 10 pro 1803. I think so, had the node up for a while. showing block at 6 985 964 as 20:05 UTC if I close/open it updates. menu>view> reload dose not help I already can see it lagging behind a transaction Address has 40.24972530784 ETC but showing 39.423 missing IN | 2018-11-24 10:12:47 | 1.00672876693 ETC

teknowill avatar Nov 24 '18 20:11 teknowill

you'll see this in the log

[2018-11-23 13:50:08.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:50:08.566] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:50:29.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:50:29.567] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:50:50.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:50:50.565] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:51:11.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:51:11.568] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:51:32.474] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:51:32.566] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:51:53.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:51:53.567] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:52:14.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:52:14.571] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:52:35.476] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:52:35.577] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:52:56.476] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:52:56.573] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:53:17.476] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:53:17.568] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:53:38.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:53:38.569] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:53:59.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:53:59.570] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:54:20.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:54:20.571] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:54:41.476] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:54:41.570] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:55:02.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:55:02.566] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:55:23.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:55:23.565] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:55:44.477] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:55:44.570] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:56:05.476] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:56:05.570] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:56:26.475] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:56:26.568] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:56:46.640] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:56:46.649] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:57:06.480] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:57:06.581] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:57:06.894] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', url: 'http://127.0.0.1:1920', version: '0.22.0' }, service: 'connector' } [2018-11-23 13:57:06.896] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', type: 'local', url: 'http://127.0.0.1:8545', version: 'Geth/v5.5.1-8a3bc2d/windows/go1.10' }, service: 'geth' } [2018-11-23 13:57:06.897] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', url: 'http://127.0.0.1:1920', version: '0.22.0' }, service: 'connector' } [2018-11-23 13:57:06.898] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', type: 'local', url: 'http://127.0.0.1:8545', version: 'Geth/v5.5.1-8a3bc2d/windows/go1.10' }, service: 'geth' } [2018-11-23 13:57:27.478] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { return api.geth.eth.getBlockByNumber('pending', true).then(function (result) { var addrs = getState().accounts.get('accounts').map(function (acc) { return acc.get('id'); }); var txes = result.transactions.filter(function (t) { return addrs.includes(t.to) || addrs.includes(t.from); }).map(function (tx) { if (tx.blockNumber) { delete tx.blockNumber; } return tx; }); if (txes.length === 0) { return; }

  dispatch(_history2.default.actions.trackTxs(txes));

  var _iteratorNormalCompletion = true;
  var _didIteratorError = false;
  var _iteratorError = undefined;

  try {
    for (var _iterator = txes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
      var tx = _step.value;

      var disp = {
        type: _actionTypes2.default.PENDING_BALANCE,
        value: tx.value,
        gas: tx.gas,
        gasPrice: tx.gasPrice,
        from: '',
        to: ''
      };
      if (addrs.includes(tx.from)) {
        disp.from = tx.from;
        dispatch(disp);
      }
      if (addrs.includes(tx.to)) {
        disp.to = tx.to;
        dispatch(disp);
      }
    }
  } catch (err) {
    _didIteratorError = true;
    _iteratorError = err;
  } finally {
    try {
      if (!_iteratorNormalCompletion && _iterator.return) {
        _iterator.return();
      }
    } finally {
      if (_didIteratorError) {
        throw _iteratorError;
      }
    }
  }
});

} [2018-11-23 13:57:27.608] [error] screenActions - Show error TypeError: Failed to fetch While processing action: function (dispatch, getState, api) { dispatch({ type: _actionTypes2.default.LOADING });

var chain = currentChain(getState());
var showHidden = getState().wallet.settings.get('showHiddenAccounts', false);
return api.emerald.listAccounts(chain, showHidden).then(function (result) {
  dispatch({
    type: _actionTypes2.default.SET_LIST,
    accounts: result
  });

  return dispatch(fetchHdPaths()).then(function () {
    return dispatch(fetchBalances(result.map(function (account) {
      return account.address;
    })));
  });
});

} [2018-11-23 13:57:39.244] [info] Shutting down Local Geth [2018-11-23 13:57:39.244] [info] Shutting down Local Connector [2018-11-23 13:58:52.139] [info] userData: C:\Users\test\AppData\Roaming\EmeraldWallet [2018-11-23 13:58:52.148] [info] Chain: {"client":"Geth/v5.4.0-4851b12/windows/go1.10","id":61,"name":"mainnet"} [2018-11-23 13:58:52.149] [info] Settings: { version: 1, geth: { url: 'http://127.0.0.1:8545', type: 'local' }, chain: { client: 'Geth/v5.4.0-4851b12/windows/go1.10', id: 61, name: 'mainnet' }, terms: 'v1' } [2018-11-23 13:58:52.246] [info] Starting Emerald... [2018-11-23 13:58:52.327] [info] Run services from C:\Program Files\EmeraldWallet\resources [2018-11-23 13:58:52.329] [debug] New Services setup { connector: { launchType: 1, url: 'http://127.0.0.1:1920' }, geth: { url: 'http://127.0.0.1:8545', type: 'local', launchType: 4 }, chain: { client: 'Geth/v5.4.0-4851b12/windows/go1.10', id: 61, name: 'mainnet' } } [2018-11-23 13:58:52.349] [info] Starting Emerald Connector... [2018-11-23 13:58:52.349] [debug] Checking if emerald exists: C:\Program Files\EmeraldWallet\resources\emerald.exe [2018-11-23 13:58:52.355] [debug] OK: emerald exists: C:\Program Files\EmeraldWallet\resources\emerald.exe [2018-11-23 13:58:52.356] [debug] Emerald bin: C:\Program Files\EmeraldWallet\resources\emerald.exe, args: account,import,--chain=mainnet,--all,C:\Users\test\AppData\Roaming.emerald\mainnet\keystore
[2018-11-23 13:58:52.432] [debug] Emerald execution status: 1 [2018-11-23 13:58:52.433] [debug] Emerald bin: C:\Program Files\EmeraldWallet\resources\emerald.exe, args: -v,server [2018-11-23 13:58:52.448] [debug] Emerald log target dir: C:\Users\test\AppData\Roaming\EmeraldWallet\logs [2018-11-23 13:58:52.485] [debug] [emerald] [INFO] Chain name: mainnet

[2018-11-23 13:58:52.591] [debug] [emerald] [INFO] Starting Emerald Connector - v0.22.0 [INFO] Chain set to 'mainnet' [INFO] Security level set to 'normal'

[2018-11-23 13:58:52.633] [debug] [emerald] [INFO] Connector started on http://127.0.0.1:1920

[2018-11-23 13:58:53.363] [error] FetchError: request to http://localhost:8545 failed, reason: connect ECONNREFUSED 127.0.0.1:8545 at ClientRequest. (C:\Program Files\EmeraldWallet\resources\app.asar\node_modules\isomorphic-fetch\node_modules\node-fetch\index.js:133:11) at ClientRequest.emit (events.js:182:13) at Socket.socketErrorListener (_http_client.js:382:9) at Socket.emit (events.js:182:13) at emitErrorNT (internal/streams/destroy.js:82:8) at emitErrorAndCloseNT (internal/streams/destroy.js:50:3) at process._tickCallback (internal/process/next_tick.js:63:19)

[2018-11-23 13:58:53.364] [info] Can't find existing RPC. Try to launch [2018-11-23 13:58:53.366] [info] Starting Geth... [bin: C:\Program Files\EmeraldWallet\resources network: mainnet, port: 8545] [2018-11-23 13:58:53.367] [debug] Geth options: [--chain,mainnet,--rpc,--rpc-port,8545,--rpc-cors-domain,http://localhost:8000,--cache=1024,--rpc-api=eth,net,web3,geth,--fast,--atxi,--atxi.auto-build,--log-dir,C:\Users\test\AppData\Roaming\EmeraldWallet\logs\geth] [2018-11-23 13:58:53.830] [info] index - Starting Emerald Wallet... [2018-11-23 13:58:53.840] [debug] screen - Show screen: null [2018-11-23 13:58:53.865] [debug] launcherActions - Got launcher config from electron: {"version":1,"geth":{"url":"http://127.0.0.1:8545","type":"local"},"chain":{"client":"Geth/v5.4.0-4851b12/windows/go1.10","id":61,"name":"mainnet"},"terms":"v1"} [2018-11-23 13:58:53.922] [debug] launcherActions - Running launcher listener [2018-11-23 13:58:53.927] [debug] screen - Show screen: welcome [2018-11-23 13:58:53.937] [debug] launcherActions - launcher listener: type MESSAGE message { level: 2, msg: 'Launching Geth backend' } [2018-11-23 13:58:54.393] [debug] RPC http://127.0.0.1:8545 not exists, going retry after 1000 ms [2018-11-23 13:58:55.726] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', url: 'http://127.0.0.1:1920', version: '0.22.0' }, service: 'connector' } [2018-11-23 13:58:55.732] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'not ready', type: 'local', url: 'http://127.0.0.1:8545' }, service: 'geth' } [2018-11-23 13:58:55.908] [info] RPC is ready: Geth/v5.5.1-8a3bc2d/windows/go1.10 [2018-11-23 13:58:55.908] [debug] launcherActions - launcher listener: type MESSAGE message { level: 2, msg: 'Local Geth RPC API is ready' } [2018-11-23 13:58:55.916] [debug] launcherActions - launcher listener: type CHAIN message { chain: 'mainnet', chainId: 61 } [2018-11-23 13:58:55.922] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', type: 'local', url: 'http://127.0.0.1:8545', version: 'Geth/v5.5.1-8a3bc2d/windows/go1.10' }, service: 'geth' } [2018-11-23 13:58:55.949] [debug] historyActions - Switching to chainId = 61 [2018-11-23 13:58:56.168] [debug] screen - Show screen: home [2018-11-23 13:58:56.334] [verbose] AccountList - Rendering AccountList [2018-11-23 13:59:16.617] [verbose] AccountList - Rendering AccountList [2018-11-23 13:59:37.598] [verbose] AccountList - Rendering AccountList [2018-11-23 13:59:58.590] [verbose] AccountList - Rendering AccountList [2018-11-23 14:00:18.705] [verbose] AccountList - Rendering AccountList [2018-11-23 14:00:33.411] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', url: 'http://127.0.0.1:1920', version: '0.22.0' }, service: 'connector' } [2018-11-23 14:00:33.413] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', type: 'local', url: 'http://127.0.0.1:8545', version: 'Geth/v5.5.1-8a3bc2d/windows/go1.10' }, service: 'geth' } [2018-11-23 14:00:33.415] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', url: 'http://127.0.0.1:1920', version: '0.22.0' }, service: 'connector' } [2018-11-23 14:00:33.417] [debug] launcherActions - launcher listener: type SERVICE_STATUS message { mode: { status: 'ready', type: 'local', url: 'http://127.0.0.1:8545', version: 'Geth/v5.5.1-8a3bc2d/windows/go1.10' }, service: 'geth' } [2018-11-23 14:00:38.807] [verbose] AccountList - Rendering AccountList [2018-11-23 14:00:58.918] [verbose] AccountList - Rendering AccountList [2018-11-23 14:01:19.087] [verbose] AccountList - Rendering AccountList [2018-11-23 14:01:39.184] [verbose] AccountList - Rendering AccountList [2018-11-23 14:01:59.281] [verbose] AccountList - Rendering AccountList [2018-11-23 14:02:19.385] [verbose] AccountList - Rendering AccountList [2018-11-23 14:02:39.495] [verbose] AccountList - Rendering AccountList [2018-11-23 14:02:59.598] [verbose] AccountList - Rendering AccountList [2018-11-23 14:03:19.701] [verbose] AccountList - Rendering AccountList [2018-11-23 14:03:39.795] [verbose] AccountList - Rendering AccountList

teknowill avatar Nov 24 '18 20:11 teknowill