Skip to content

Commit

Permalink
Merge pull request cubedro#300 from cubedro/develop
Browse files Browse the repository at this point in the history
fixed canUpdateHistory
  • Loading branch information
cubedro authored Dec 11, 2016
2 parents e391b87 + a892077 commit caa057b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions lib/utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];

Expand Down

0 comments on commit caa057b

Please sign in to comment.