micro optimize.
This commit is contained in:
parent
b3dd3bfacb
commit
1f3d2f4b96
@ -777,10 +777,8 @@ Chain.prototype._findDuplicates = function _findDuplicates(block, prev, callback
|
|||||||
|
|
||||||
// Check all transactions
|
// Check all transactions
|
||||||
utils.forEachSerial(block.txs, function(tx, next) {
|
utils.forEachSerial(block.txs, function(tx, next) {
|
||||||
var hash = tx.hash('hex');
|
|
||||||
|
|
||||||
// BIP30 - Ensure there are no duplicate txids
|
// BIP30 - Ensure there are no duplicate txids
|
||||||
self.db.hasCoins(hash, function(err, result) {
|
self.db.hasCoins(tx.hash(), function(err, result) {
|
||||||
if (err)
|
if (err)
|
||||||
return next(err);
|
return next(err);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user