added LITE flag

This commit is contained in:
cubedro
2015-07-21 19:24:42 +03:00
parent e1a6beb16f
commit 23721dba97
4 changed files with 3 additions and 46 deletions

View File

@@ -23,6 +23,7 @@ History.prototype.add = function(block, id, trusted, addingHistory)
if( !_.isUndefined(block) && !_.isUndefined(block.number) && !_.isUndefined(block.uncles) && !_.isUndefined(block.transactions) && !_.isUndefined(block.difficulty) && block.number > 0 )
{
trusted = (process.env.LITE === true ? true : trusted);
var historyBlock = this.search(block.number);
var forkIndex = -1;

View File

@@ -81,7 +81,7 @@ Node.prototype.setInfo = function(data, callback)
if( !_.isUndefined(data.ip) )
{
if( trusted.indexOf(data.ip) >= 0 )
if( trusted.indexOf(data.ip) >= 0 || process.env.LITE === true)
{
this.trusted = true;
}