added LITE flag
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user