This commit is contained in:
Christopher Jeffrey 2016-03-31 22:02:58 -07:00
parent bba77b4150
commit 74b9b68f4c

View File

@ -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);