Browse Source

verifying blocks message

all-modes
pbca26 7 years ago
parent
commit
24a983a3fa
  1. 16
      react/src/components/dashboard/walletsProgress/walletsProgress.js
  2. 8
      react/src/components/dashboard/walletsProgress/walletsProgress.render.js

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

@ -8,6 +8,7 @@ import {
TranslationComponentsRender,
CoinIsBusyRender,
ChainActivationNotificationRender,
VerifyingBlocksRender,
WalletsProgressRender
} from './walletsProgress.render';
@ -119,20 +120,23 @@ class WalletsProgress extends React.Component {
renderSyncPercentagePlaceholder() {
const _progress = this.props.ActiveCoin.progress;
console.warn('renderSyncPercentagePlaceholder', _progress);
// activating best chain
if (_progress &&
_progress.code &&
_progress.code === -28 &&
this.props.Settings.debugLog) {
const _parseProgress = this.parseActivatingBestChainProgress();
if (_progress.message !== 'Verifying blocks...') {
const _parseProgress = this.parseActivatingBestChainProgress();
if (_parseProgress &&
_parseProgress[1]) {
return SyncPercentageRender.call(this, _parseProgress[1] === 1000 ? 100 : _parseProgress[1].toFixed(2));
if (_parseProgress &&
_parseProgress[1]) {
return SyncPercentageRender.call(this, _parseProgress[1] === 1000 ? 100 : _parseProgress[1].toFixed(2));
} else {
return LoadingBlocksRender.call(this);
}
} else {
return LoadingBlocksRender.call(this);
return VerifyingBlocksRender.call(this);
}
}

8
react/src/components/dashboard/walletsProgress/walletsProgress.render.js

@ -1,6 +1,14 @@
import React from 'react';
import { translate } from '../../../translate/translate';
export const VerifyingBlocksRender = function() {
return (
<div className="progress-bar progress-bar-info progress-bar-striped active full-width font-size-80-percent">
<span className="full-width">Verifying blocks...</span>
</div>
);
};
export const SyncErrorBlocksRender = function() {
return (
<div className="progress-bar progress-bar-info progress-bar-striped active full-width font-size-80-percent">

Loading…
Cancel
Save