From 1f3d2f4b964f0ecae5e2a4945e7d2c914feaceea Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 30 Jun 2016 12:16:28 -0700 Subject: [PATCH] micro optimize. --- lib/bcoin/chain.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);