From cc4617ca2370c34419290624e5e9afae1949d943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20J=C3=A4mthagen?= Date: Tue, 3 Jan 2017 15:13:56 +0100 Subject: [PATCH] chainntnfs: break out of loop once txIndex is found --- chainntnfs/btcdnotify/btcd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chainntnfs/btcdnotify/btcd.go b/chainntnfs/btcdnotify/btcd.go index 0b040980..d1996f75 100644 --- a/chainntnfs/btcdnotify/btcd.go +++ b/chainntnfs/btcdnotify/btcd.go @@ -395,6 +395,7 @@ func (b *BtcdNotifier) attemptHistoricalDispatch(msg *confirmationsNotification, h := t.TxHash() if txHash.IsEqual(&h) { txIndex = uint32(i) + break } }