src/mempool/fees.js
function ConfirmStats(type, logger) {
  if (!(this instanceof ConfirmStats))
    return new ConfirmStats(type, logger);

  this.logger = Logger.global;

  this.type = type;
  this.decay = 0;
  this.maxConfirms = 0;

  this.buckets = new Float64Array(0);
  this.bucketMap = new DoubleMap();

  this.confAvg = [];
  this.curBlockConf = [];
  this.unconfTX = [];

  this.oldUnconfTX = new Int32Array(0);
  this.curBlockTX = new Int32Array(0);
  this.txAvg = new Float64Array(0);
  this.curBlockVal = new Float64Array(0);
  this.avg = new Float64Array(0);

  if (logger) {
    assert(typeof logger === 'object');
    this.logger = logger.context('fees');
  }
}
function ConfirmStats(type, logger) {
  if (!(this instanceof ConfirmStats))
    return new ConfirmStats(type, logger);

  this.logger = Logger.global;

  this.type = type;
  this.decay = 0;
  this.maxConfirms = 0;

  this.buckets = new Float64Array(0);
  this.bucketMap = new DoubleMap();

  this.confAvg = [];
  this.curBlockConf = [];
  this.unconfTX = [];

  this.oldUnconfTX = new Int32Array(0);
  this.curBlockTX = new Int32Array(0);
  this.txAvg = new Float64Array(0);
  this.curBlockVal = new Float64Array(0);
  this.avg = new Float64Array(0);

  if (logger) {
    assert(typeof logger === 'object');
    this.logger = logger.context('fees');
  }
}
function ConfirmStats ( type , logger ) { if ( ! ( this instanceof ConfirmStats ) ) return new ConfirmStats ( type , logger ) ; this . logger = Logger . global ; this . type = type ; this . decay = 0 ; this . maxConfirms = 0 ; this . buckets = new Float64Array ( 0 ) ; this . bucketMap = new DoubleMap ( ) ; this . confAvg = [ ] ; this . curBlockConf = [ ] ; this . unconfTX = [ ] ; this . oldUnconfTX = new Int32Array ( 0 ) ; this . curBlockTX = new Int32Array ( 0 ) ; this . txAvg = new Float64Array ( 0 ) ; this . curBlockVal = new Float64Array ( 0 ) ; this . avg = new Float64Array ( 0 ) ; if ( logger ) { assert ( typeof logger === 'object' ) ; this . logger = logger . context ( 'fees' ) ; } }
Confirmation stats.
@alias module:mempool.ConfirmStats
@constructor
@param {String} type
@param {Logger?} logger
Confirmation stats .