chainntnfs: break out of loop once txIndex is found
This commit is contained in:
1 parent
95888613d0
commit
cc4617ca23
1 file changed
+1
@@ -395,6 +395,7 @@ func (b *BtcdNotifier) attemptHistoricalDispatch(msg *confirmationsNotification,
|
||||
h := t.TxHash()
|
||||
if txHash.IsEqual(&h) {
|
||||
txIndex = uint32(i)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user