chainntnfs/btcdnotify: fix off-by one error when setting spending height
This commit is contained in:
parent
065f646ef8
commit
0050108391
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user