From 00501083914aba96731e77307c61a769af7252fd Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 23 May 2017 18:18:45 -0700 Subject: [PATCH] chainntnfs/btcdnotify: fix off-by one error when setting spending height --- chainntnfs/btcdnotify/btcd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chainntnfs/btcdnotify/btcd.go b/chainntnfs/btcdnotify/btcd.go index 5c2cf872..3a7f7e8b 100644 --- a/chainntnfs/btcdnotify/btcd.go +++ b/chainntnfs/btcdnotify/btcd.go @@ -381,7 +381,7 @@ out: if newSpend.details != nil { spendDetails.SpendingHeight = newSpend.details.Height } else { - spendDetails.SpendingHeight = currentHeight + spendDetails.SpendingHeight = currentHeight + 1 } for _, ntfn := range clients {