Browse Source

Merge pull request #11 from SuperNETorg/v0.25

rpc2cli interval 15s -> 40s
v0.25
pbca26 7 years ago
committed by GitHub
parent
commit
fef72146e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      react/src/components/addcoin/addcoin.js
  2. 3
      react/src/components/dashboard/coinTile/coinTileItem.js

1
react/src/components/addcoin/addcoin.js

@ -243,7 +243,6 @@ class AddCoin extends React.Component {
} }
handleKeydown(e) { handleKeydown(e) {
console.warn(e);
if (e.key === 'Escape') { if (e.key === 'Escape') {
this.dismiss(); this.dismiss();
} }

3
react/src/components/dashboard/coinTile/coinTileItem.js

@ -36,6 +36,7 @@ import CoinTileItemRender from './coinTileItem.render';
const SPV_DASHBOARD_UPDATE_TIMEOUT = 60000; const SPV_DASHBOARD_UPDATE_TIMEOUT = 60000;
const ACTIVE_HANDLE_TIMEOUT_COIND_NATIVE = 15000; 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; const COIND_DOWN_MODAL_FETCH_FAILURES_THRESHOLD = mainWindow.appConfig.failedRPCAttemptsThreshold || 10;
class CoinTileItem extends React.Component { class CoinTileItem extends React.Component {
@ -312,7 +313,7 @@ class CoinTileItem extends React.Component {
if (mode === 'native') { if (mode === 'native') {
const _iguanaActiveHandle = setInterval(() => { const _iguanaActiveHandle = setInterval(() => {
this.dispatchCoinActions(coin, mode); 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)); Store.dispatch(startInterval('sync', _iguanaActiveHandle));
} else if (mode === 'spv') { } else if (mode === 'spv') {

Loading…
Cancel
Save