commit
365bd74c53
@ -260,9 +260,8 @@ function spec() {
|
|||||||
HistoricSync.prototype.prepareFileSync = function(opts, next) {
|
HistoricSync.prototype.prepareFileSync = function(opts, next) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
if (
|
if ( opts.forceRPC || !config.bitcoind.dataDir ||
|
||||||
opts.forceRPC || !config.bitcoind.dataDir ||
|
self.connectedCountDB > self.blockChainHeight * 0.9) return next();
|
||||||
self.connectedCountDB > self.blockChainHeight > 0.9) return next();
|
|
||||||
|
|
||||||
|
|
||||||
self.blockExtractor = new BlockExtractor(config.bitcoind.dataDir, config.network);
|
self.blockExtractor = new BlockExtractor(config.bitcoind.dataDir, config.network);
|
||||||
|
|||||||
@ -10,23 +10,26 @@
|
|||||||
<div class="col-xs-12 col-md-8">
|
<div class="col-xs-12 col-md-8">
|
||||||
<h2>Sync Status</h2>
|
<h2>Sync Status</h2>
|
||||||
<table class="table" data-ng-controller="StatusController" data-ng-init="getSync()">
|
<table class="table" data-ng-controller="StatusController" data-ng-init="getSync()">
|
||||||
<thead>
|
|
||||||
<span class="text-danger" data-ng-show="sync && sync.error">{{sync.error}}</span>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Sync Progress</td>
|
<td>Sync Progress</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: {{ sync.syncPercentage}}%">
|
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: {{ sync.syncPercentage}}%">
|
||||||
<span>{{sync.syncPercentage}}% Complete</span>
|
<span data-ng-show="sync.syncPercentage>0">{{sync.syncPercentage}}% Complete</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Current Sync Status</td>
|
<td>Current Sync Status</td>
|
||||||
<td class="text-right">{{sync.status}}</td>
|
<td class="text-right">
|
||||||
|
<span data-ng-show="!sync.error">{{sync.status}}</span>
|
||||||
|
<span class="text-danger" data-ng-show="sync.error">
|
||||||
|
<span class="glyphicon glyphicon-warning-sign"></span>
|
||||||
|
{{sync.error}}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Start Date</td>
|
<td>Start Date</td>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user