diff --git a/lib/bcoin/chain.js b/lib/bcoin/chain.js index a4622849..d5094285 100644 --- a/lib/bcoin/chain.js +++ b/lib/bcoin/chain.js @@ -777,10 +777,8 @@ Chain.prototype._findDuplicates = function _findDuplicates(block, prev, callback // Check all transactions utils.forEachSerial(block.txs, function(tx, next) { - var hash = tx.hash('hex'); - // BIP30 - Ensure there are no duplicate txids - self.db.hasCoins(hash, function(err, result) { + self.db.hasCoins(tx.hash(), function(err, result) { if (err) return next(err);