|
|
@ -374,6 +374,9 @@ Node.prototype.getBlockNumber = function() |
|
|
|
|
|
|
|
|
|
|
|
Node.prototype.canUpdate = function() |
|
|
|
Node.prototype.canUpdate = function() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (this.trusted) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
// return (this.info.canUpdateHistory && this.trusted) || false;
|
|
|
|
// return (this.info.canUpdateHistory && this.trusted) || false;
|
|
|
|
return (this.info.canUpdateHistory || (this.stats.syncing === false && this.stats.peers > 0)) || false; |
|
|
|
return (this.info.canUpdateHistory || (this.stats.syncing === false && this.stats.peers > 0)) || false; |
|
|
|
} |
|
|
|
} |
|
|
|