chainntnfs: fixed off-by-one in attemptHistoricalDispatch
This commit is contained in:
1 parent
def39799c5
commit
90ed23e6aa
1 file changed
+1
-1
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user