fixed canUpdateHistory

pull/5/head
cubedro 8 years ago
parent 86e6bf11f8
commit a8920773f8
  1. 3
      lib/node.js
  2. 1
      lib/utils/config.js

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

@ -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',
]; ];

Loading…
Cancel
Save