mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
chainntnfs: fixed off-by-one in attemptHistoricalDispatch
This commit is contained in:
parent
def39799c5
commit
90ed23e6aa
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ func (b *BtcdNotifier) attemptHistoricalDispatch(msg *confirmationsNotification,
|
|||
|
||||
confDetails := &chainntnfs.TxConfirmation{
|
||||
BlockHash: blockHash,
|
||||
BlockHeight: uint32(currentHeight) - uint32(tx.Confirmations),
|
||||
BlockHeight: uint32(currentHeight) - uint32(tx.Confirmations) + 1,
|
||||
TxIndex: txIndex,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue