chainntnfs: break out of loop once txIndex is found
This commit is contained in:
parent
95888613d0
commit
cc4617ca23
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user