chainntnfs/btcdnotify: fix off-by one error when setting spending height
This commit is contained in:
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user