From ce4a36559fb7bbe99f71777241ca165e9fa9da9f Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sat, 30 Dec 2017 02:46:29 -0800 Subject: [PATCH] rpc2cli interval 15s -> 40s --- react/src/components/addcoin/addcoin.js | 1 - react/src/components/dashboard/coinTile/coinTileItem.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react/src/components/addcoin/addcoin.js b/react/src/components/addcoin/addcoin.js index 1b47ca9..e7608e0 100644 --- a/react/src/components/addcoin/addcoin.js +++ b/react/src/components/addcoin/addcoin.js @@ -243,7 +243,6 @@ class AddCoin extends React.Component { } handleKeydown(e) { - console.warn(e); if (e.key === 'Escape') { this.dismiss(); } diff --git a/react/src/components/dashboard/coinTile/coinTileItem.js b/react/src/components/dashboard/coinTile/coinTileItem.js index 8acb29f..8238f09 100644 --- a/react/src/components/dashboard/coinTile/coinTileItem.js +++ b/react/src/components/dashboard/coinTile/coinTileItem.js @@ -36,6 +36,7 @@ import CoinTileItemRender from './coinTileItem.render'; const SPV_DASHBOARD_UPDATE_TIMEOUT = 60000; const ACTIVE_HANDLE_TIMEOUT_COIND_NATIVE = 15000; +const ACTIVE_HANDLE_TIMEOUT_COIND_NATIVE_RCP2CLI = 40000; const COIND_DOWN_MODAL_FETCH_FAILURES_THRESHOLD = mainWindow.appConfig.failedRPCAttemptsThreshold || 10; class CoinTileItem extends React.Component { @@ -312,7 +313,7 @@ class CoinTileItem extends React.Component { if (mode === 'native') { const _iguanaActiveHandle = setInterval(() => { this.dispatchCoinActions(coin, mode); - }, ACTIVE_HANDLE_TIMEOUT_COIND_NATIVE); + }, Config.rpc2cli ? ACTIVE_HANDLE_TIMEOUT_COIND_NATIVE_RCP2CLI : ACTIVE_HANDLE_TIMEOUT_COIND_NATIVE); Store.dispatch(startInterval('sync', _iguanaActiveHandle)); } else if (mode === 'spv') {