chainntnfs: break out of loop once txIndex is found

This commit is contained in:
Christopher Jämthagen 2017-01-03 15:13:56 +01:00 committed by Olaoluwa Osuntokun
parent 95888613d0
commit cc4617ca23
1 changed files with 1 additions and 0 deletions

View File

@ -395,6 +395,7 @@ func (b *BtcdNotifier) attemptHistoricalDispatch(msg *confirmationsNotification,
h := t.TxHash() h := t.TxHash()
if txHash.IsEqual(&h) { if txHash.IsEqual(&h) {
txIndex = uint32(i) txIndex = uint32(i)
break
} }
} }