Browse Source

reindexing blocks placeholder

all-modes
pbca26 8 years ago
parent
commit
3507751909
  1. 2
      react/src/actions/actions/nativeSyncInfo.js
  2. 6
      react/src/components/dashboard/coinTile/coinTileItem.js
  3. 2
      react/src/components/dashboard/settings/settings.js
  4. 9
      react/src/components/dashboard/walletsNativeSyncProgress/walletsNativeSyncProgress.js
  5. 7
      react/src/components/dashboard/walletsProgress/walletsProgress.js

2
react/src/actions/actions/nativeSyncInfo.js

@ -61,7 +61,6 @@ export function getSyncInfoNativeKMD(skipDebug) {
}
function getSyncInfoNativeState(json, coin, skipDebug) {
console.log('getSyncInfoNativeState', json);
if (coin === 'KMD' &&
json &&
json.error) {
@ -70,7 +69,6 @@ function getSyncInfoNativeState(json, coin, skipDebug) {
if (json &&
json.error &&
Config.cli.default) {
console.log('getSyncInfoNativeState', 'error');
return {
type: SYNCING_NATIVE_MODE,
progress: Config.cli.default ? json.error : json,

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

@ -17,7 +17,8 @@ import {
getKMDOPID,
getNativeTxHistory,
getKMDBalanceTotal,
getSyncInfoNative
getSyncInfoNative,
getDebugLog
} from '../../../actions/actionCreators';
import Store from '../../../store';
@ -44,6 +45,9 @@ class CoinTileItem extends React.Component {
Store.dispatch(iguanaActiveHandle(true));
const syncPercentage = this.props.Dashboard && this.props.Dashboard.progress && (parseFloat(parseInt(this.props.Dashboard.progress.blocks, 10) * 100 / parseInt(this.props.Dashboard.progress.longestchain, 10)).toFixed(2)).replace('NaN', 0);
if (syncPercentage < 100) {
Store.dispatch(getDebugLog('komodo', 10));
}
if (this.props.Dashboard.progress &&
this.props.Dashboard.progress.blocks &&
this.props.Dashboard.progress.longestchain &&

2
react/src/components/dashboard/settings/settings.js

@ -322,7 +322,7 @@ class Settings extends React.Component {
_cliResponseParsed = _cliResponse.result;
}
const __cliResponseParsed = _cliResponseParsed.split('\r\n')
const __cliResponseParsed = _cliResponseParsed.split('\r\n');
let _items = [];
for (let i = 0; i < __cliResponseParsed.length; i++) {

9
react/src/components/dashboard/walletsNativeSyncProgress/walletsNativeSyncProgress.js

@ -96,9 +96,16 @@ class WalletsNativeSyncProgress extends React.Component {
return (
`: ${currentProgress}% (rescanning blocks)`
);
} else if (
this.props.Settings.debugLog.indexOf('LoadExternalBlockFile:') > -1 ||
this.props.Settings.debugLog.indexOf('Reindexing block file') > -1
) {
return (
`: (reindexing blocks from disk)`
);
} else {
return (
<span> (downloading blocks)</span>
<span> (downloading blocks!)</span>
);
}
}

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

@ -121,6 +121,13 @@ class WalletsProgress extends React.Component {
return (
`: ${currentProgress}% (rescanning blocks)`
);
} else if (
this.props.Settings.debugLog.indexOf('LoadExternalBlockFile:') > -1 ||
this.props.Settings.debugLog.indexOf('Reindexing block file') > -1
) {
return (
`: (reindexing blocks from disk)`
);
} else {
return (
<span> (downloading blocks)</span>

Loading…
Cancel
Save