"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var idCounter = 0;

var Node = function Node(parent, distanceFromLeftAncestor) {
  _classCallCheck(this, Node);

  this.parent = parent;
  this.left = null;
  this.right = null;
  this.distanceFromLeftAncestor = distanceFromLeftAncestor;
  this.id = ++idCounter;
  this.priority = null;
  this.blockHeight = 0;
  this.followingBlockHeight = 0;
  this.blockIds = new Set();
};

exports["default"] = Node;
module.exports = exports["default"];