From 74b9b68f4caeef16ff1a63b9a531301dbc6bce09 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 31 Mar 2016 22:02:58 -0700 Subject: [PATCH] minor. --- lib/bcoin/mempool.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/bcoin/mempool.js b/lib/bcoin/mempool.js index c952bcd5..932936fe 100644 --- a/lib/bcoin/mempool.js +++ b/lib/bcoin/mempool.js @@ -41,8 +41,8 @@ function Mempool(node, options) { this.totalOrphans = 0; this.coins = {}; this.txs = {}; - this.psIndex = new BinaryIndex; - this.addressMap = new AddressMap; + this.psIndex = new BinaryIndex(); + this.addressMap = new AddressMap(); this.orphans = {}; this.waiting = {}; this.spent = {}; @@ -1378,9 +1378,7 @@ BinaryIndex.prototype.insert = function insert(tx) { BinaryIndex.prototype.remove = function remove(tx) { var hash = tx.hash(); - var index; - - index = binarySearch(this.data, hash); + var index = binarySearch(this.data, hash); if (index !== -1) { this.index.splice(index, 1);