chainntnfs: break out of loop once txIndex is found

This commit is contained in:
Christopher Jämthagen authored and Olaoluwa Osuntokun committed 2017-01-11 15:51:19 -08:00
1 parent 95888613d0
commit cc4617ca23
1 file changed
+1
+1
View File
@@ -395,6 +395,7 @@ func (b *BtcdNotifier) attemptHistoricalDispatch(msg *confirmationsNotification,
h := t.TxHash()
if txHash.IsEqual(&h) {
txIndex = uint32(i)
break
}
}