fixed canUpdateHistory

This commit is contained in:
cubedro 2016-12-11 18:32:33 +02:00
parent 86e6bf11f8
commit a8920773f8
2 changed files with 4 additions and 0 deletions

View File

@ -374,6 +374,9 @@ Node.prototype.getBlockNumber = function()
Node.prototype.canUpdate = function()
{
if (this.trusted) {
return true;
}
// return (this.info.canUpdateHistory && this.trusted) || 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',
'86.120.171.69',
'86.123.155.6',
'188.24.81.133',
'::ffff:127.0.0.1',
];