Merge pull request #300 from cubedro/develop

fixed canUpdateHistory
This commit is contained in:
Marian OANCΞA 2016-12-11 18:33:46 +02:00 committed by GitHub
commit caa057bd40
2 changed files with 4 additions and 0 deletions

View File

@ -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;
} }

View File

@ -17,6 +17,7 @@ var trusted = [
'172.31.39.87', '172.31.39.87',
'86.120.171.69', '86.120.171.69',
'86.123.155.6', '86.123.155.6',
'188.24.81.133',
'::ffff:127.0.0.1', '::ffff:127.0.0.1',
]; ];