code: function TXDB(wallet) {
    if (!(this instanceof TXDB))
      return new TXDB(wallet);
  
    this.wallet = wallet;
    this.walletdb = wallet.db;
    this.db = wallet.db.db;
    this.logger = wallet.db.logger;
    this.network = wallet.db.network;
    this.options = wallet.db.options;
    this.coinCache = new LRU(10000);
  
    this.locked = new Set();
    this.state = null;
    this.pending = null;
    this.events = [];
  }
docs: TXDB
  @alias module:wallet.TXDB
  @constructor
  @param {Wallet} wallet