From 6053497c0cccf085721b35b9cc007e2c715f3018 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 12 Jun 2016 10:26:18 -0700 Subject: [PATCH] fix mempool. --- lib/bcoin/mempool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bcoin/mempool.js b/lib/bcoin/mempool.js index 5fbbf408..1a4cbe01 100644 --- a/lib/bcoin/mempool.js +++ b/lib/bcoin/mempool.js @@ -764,7 +764,7 @@ Mempool.prototype.addTX = function addTX(tx, callback, force) { 0)); } - self.chain.db.isUnspentTX(hash, function(err, exists) { + self.chain.db.hasCoins(hash, function(err, exists) { if (err) return callback(err); @@ -1562,7 +1562,7 @@ Mempool.prototype.getConfidence = function getConfidence(hash, callback) { }); } - return self.chain.db.isUnspentTX(hash, function(err, existing) { + return self.chain.db.hasCoins(hash, function(err, existing) { if (err) return callback(err);