From 75daa865cd5deee086b6b23467119186efa3fabc Mon Sep 17 00:00:00 2001 From: Petr Balashov Date: Mon, 8 May 2017 15:13:26 +0200 Subject: [PATCH] cache all addresses update request --- react/src/actions/actionCreators.js | 2 +- react/src/components/dashboard/coinTileItem.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/react/src/actions/actionCreators.js b/react/src/actions/actionCreators.js index 367d8ce..00494c3 100644 --- a/react/src/actions/actionCreators.js +++ b/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'); } diff --git a/react/src/components/dashboard/coinTileItem.js b/react/src/components/dashboard/coinTileItem.js index 6166468..e7f6a0b 100644 --- a/react/src/components/dashboard/coinTileItem.js +++ b/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);