mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-26 17:56:32 +02:00
chainntnfs/btcdnotify: fix off-by one error when setting spending height
This commit is contained in:
@@ -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