Skip to content

Commit

Permalink
chainntnfs: break out of loop once txIndex is found
Browse files Browse the repository at this point in the history
  • Loading branch information
cjamthagen authored and Roasbeef committed Jan 11, 2017
1 parent 9588861 commit cc4617c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chainntnfs/btcdnotify/btcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ func (b *BtcdNotifier) attemptHistoricalDispatch(msg *confirmationsNotification,
h := t.TxHash()
if txHash.IsEqual(&h) {
txIndex = uint32(i)
break
}
}

Expand Down

0 comments on commit cc4617c

Please sign in to comment.