From 90ed23e6aa7450392237de3b392bd2c6e16ccc59 Mon Sep 17 00:00:00 2001 From: bryanvu Date: Wed, 28 Dec 2016 18:13:17 -0800 Subject: [PATCH] chainntnfs: fixed off-by-one in attemptHistoricalDispatch --- chainntnfs/btcdnotify/btcd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chainntnfs/btcdnotify/btcd.go b/chainntnfs/btcdnotify/btcd.go index 77c9f88f..257a9bab 100644 --- a/chainntnfs/btcdnotify/btcd.go +++ b/chainntnfs/btcdnotify/btcd.go @@ -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, }