Browse Source
Merge pull request #11 from SuperNETorg/v0.25
rpc2cli interval 15s -> 40s
v0.25
pbca26
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
react/src/components/addcoin/addcoin.js
-
react/src/components/dashboard/coinTile/coinTileItem.js
|
|
@ -243,7 +243,6 @@ class AddCoin extends React.Component { |
|
|
|
} |
|
|
|
|
|
|
|
handleKeydown(e) { |
|
|
|
console.warn(e); |
|
|
|
if (e.key === 'Escape') { |
|
|
|
this.dismiss(); |
|
|
|
} |
|
|
|
|
|
@ -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') { |
|
|
|