diff --git a/query.go b/query.go index 6db67db00..6ad8b709d 100644 --- a/query.go +++ b/query.go @@ -914,7 +914,7 @@ func (s *ChainService) GetBlock(blockHash chainhash.Hash, if err == nil && blockValue != nil { return blockValue.(*cache.CacheableBlock).Block, err } - if err != nil && err != lru.ErrElementNotFound { + if err != nil && err != cache.ErrElementNotFound { return nil, err }