src/primitives/block.js
function Block(options) {
  if (!(this instanceof Block))
    return new Block(options);

  AbstractBlock.call(this);

  this.txs = [];

  this._raw = null;
  this._size = -1;
  this._witness = -1;

  if (options)
    this.fromOptions(options);
}
function Block(options) {
  if (!(this instanceof Block))
    return new Block(options);

  AbstractBlock.call(this);

  this.txs = [];

  this._raw = null;
  this._size = -1;
  this._witness = -1;

  if (options)
    this.fromOptions(options);
}
function Block ( options ) { if ( ! ( this instanceof Block ) ) return new Block ( options ) ; AbstractBlock . call ( this ) ; this . txs = [ ] ; this . _raw = null ; this . _size = - 1 ; this . _witness = - 1 ; if ( options ) this . fromOptions ( options ) ; }
Represents a full block.
@alias module:primitives.Block
@constructor
@extends AbstractBlock
@param {NakedBlock} options
Represents a full block .