diff --git a/blockchain/blockindex.go b/blockchain/blockindex.go index b9e8704d..834beb54 100644 --- a/blockchain/blockindex.go +++ b/blockchain/blockindex.go @@ -316,9 +316,9 @@ func newBlockIndex(db database.DB, chainParams *chaincfg.Params) *blockIndex { // This function is safe for concurrent access. func (bi *blockIndex) HaveBlock(hash *chainhash.Hash) bool { bi.RLock() - _, hasBlock := bi.index[*hash] + node, hasBlock := bi.index[*hash] bi.RUnlock() - return hasBlock + return hasBlock && node.status.HaveData() } // LookupNode returns the block node identified by the provided hash. It will