minor.
This commit is contained in:
parent
bba77b4150
commit
74b9b68f4c
@ -41,8 +41,8 @@ function Mempool(node, options) {
|
|||||||
this.totalOrphans = 0;
|
this.totalOrphans = 0;
|
||||||
this.coins = {};
|
this.coins = {};
|
||||||
this.txs = {};
|
this.txs = {};
|
||||||
this.psIndex = new BinaryIndex;
|
this.psIndex = new BinaryIndex();
|
||||||
this.addressMap = new AddressMap;
|
this.addressMap = new AddressMap();
|
||||||
this.orphans = {};
|
this.orphans = {};
|
||||||
this.waiting = {};
|
this.waiting = {};
|
||||||
this.spent = {};
|
this.spent = {};
|
||||||
@ -1378,9 +1378,7 @@ BinaryIndex.prototype.insert = function insert(tx) {
|
|||||||
|
|
||||||
BinaryIndex.prototype.remove = function remove(tx) {
|
BinaryIndex.prototype.remove = function remove(tx) {
|
||||||
var hash = tx.hash();
|
var hash = tx.hash();
|
||||||
var index;
|
var index = binarySearch(this.data, hash);
|
||||||
|
|
||||||
index = binarySearch(this.data, hash);
|
|
||||||
|
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
this.index.splice(index, 1);
|
this.index.splice(index, 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user