From cdc3002c85bf010d65c5d29d6782a0632b1e3a18 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Wed, 9 Oct 2013 16:35:33 +0100 Subject: [PATCH] Fix previous. We care if we have the block OR it is an orphan, not both. --- chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain.go b/chain.go index 4e396ce7..ff487ed4 100644 --- a/chain.go +++ b/chain.go @@ -173,7 +173,7 @@ func (b *BlockChain) DisableVerify(disable bool) { // // This function is NOT safe for concurrent access. func (b *BlockChain) HaveBlock(hash *btcwire.ShaHash) bool { - return b.IsKnownOrphan(hash) && b.blockExists(hash) + return b.IsKnownOrphan(hash) || b.blockExists(hash) } // IsKnownOrphan returns whether the passed hash is currently a known orphan.