From a8920773f8d67a3ad52939d0d0f4c00bc284b10b Mon Sep 17 00:00:00 2001 From: cubedro Date: Sun, 11 Dec 2016 18:32:33 +0200 Subject: [PATCH] fixed canUpdateHistory --- lib/node.js | 3 +++ lib/utils/config.js | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/node.js b/lib/node.js index 66ce8af..8e4f9ca 100644 --- a/lib/node.js +++ b/lib/node.js @@ -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; } diff --git a/lib/utils/config.js b/lib/utils/config.js index bca9c16..8222c64 100644 --- a/lib/utils/config.js +++ b/lib/utils/config.js @@ -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', ];