micro optimize.

This commit is contained in:
Christopher Jeffrey 2016-06-30 12:16:28 -07:00
parent b3dd3bfacb
commit 1f3d2f4b96
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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