src/node/node.js
function Node(options) {
  if (!(this instanceof Node))
    return new Node(options);

  AsyncObject.call(this);

  this.config = new Config('wmcc');
  this.config.inject(options);
  this.config.load(options);

  if (options.config)
    this.config.open('wmcc.conf');

  this.network = Network.get(this.config.network);
  this.startTime = -1;
  this.bound = [];
  this.plugins = Object.create(null);
  this.stack = [];

  this.logger = null;
  this.workers = null;

  this.spv = false;
  this.chain = null;
  this.fees = null;
  this.mempool = null;
  this.pool = null;
  this.miner = null;
  this.http = null;

  this.init();
}
function Node(options) {
  if (!(this instanceof Node))
    return new Node(options);

  AsyncObject.call(this);

  this.config = new Config('wmcc');
  this.config.inject(options);
  this.config.load(options);

  if (options.config)
    this.config.open('wmcc.conf');

  this.network = Network.get(this.config.network);
  this.startTime = -1;
  this.bound = [];
  this.plugins = Object.create(null);
  this.stack = [];

  this.logger = null;
  this.workers = null;

  this.spv = false;
  this.chain = null;
  this.fees = null;
  this.mempool = null;
  this.pool = null;
  this.miner = null;
  this.http = null;

  this.init();
}
function Node ( options ) { if ( ! ( this instanceof Node ) ) return new Node ( options ) ; AsyncObject . call ( this ) ; this . config = new Config ( 'wmcc' ) ; this . config . inject ( options ) ; this . config . load ( options ) ; if ( options . config ) this . config . open ( 'wmcc.conf' ) ; this . network = Network . get ( this . config . network ) ; this . startTime = - 1 ; this . bound = [ ] ; this . plugins = Object . create ( null ) ; this . stack = [ ] ; this . logger = null ; this . workers = null ; this . spv = false ; this . chain = null ; this . fees = null ; this . mempool = null ; this . pool = null ; this . miner = null ; this . http = null ; this . init ( ) ; }
Base class from which every other
Node-like object inherits.
@alias module:node.Node
@constructor
@abstract
@param {Object} options
Base class from which every other Node - like object inherits .