chainntnfs/btcdnotify: fix off-by one error when setting spending height

This commit is contained in:
Olaoluwa Osuntokun committed 2017-06-05 19:07:48 -07:00
1 parent 065f646ef8
commit 0050108391
1 file changed
+1 -1
+1 -1
View File
@@ -381,7 +381,7 @@ out:
if newSpend.details != nil { if newSpend.details != nil {
spendDetails.SpendingHeight = newSpend.details.Height spendDetails.SpendingHeight = newSpend.details.Height
} else { } else {
spendDetails.SpendingHeight = currentHeight spendDetails.SpendingHeight = currentHeight + 1
} }
for _, ntfn := range clients { for _, ntfn := range clients {