Browse Source

cache all addresses update request

all-modes
Petr Balashov 8 years ago
parent
commit
75daa865cd
  1. 2
      react/src/actions/actionCreators.js
  2. 7
      react/src/components/dashboard/coinTileItem.js

2
react/src/actions/actionCreators.js

@ -795,7 +795,7 @@ export function getBasiliskTransactionsList(coin, address) {
})
.then(response => response.json())
.then(function(json) {
if (json.result && json.result.indexOf('no file with handle') > -1) {
if (json.result && !json.result.basilisk && json.result.indexOf('no file with handle') > -1) {
console.log('new cache');
}

7
react/src/components/dashboard/coinTileItem.js

@ -83,6 +83,13 @@ class CoinTileItem extends React.Component {
Store.dispatch(startInterval('sync', _iguanaActiveHandle));
}
if (mode === 'basilisk') {
Store.dispatch(fetchNewCacheData({
'pubkey': this.props.Dashboard.activeHandle.pubkey,
'allcoins': false,
'coin': coin,
'calls': 'listtransactions:getbalance',
}));
var _iguanaActiveHandle = setInterval(function() {
this.dispatchCoinActions(coin, mode);
}.bind(this), 3000);

Loading…
Cancel
Save