Description

HasBlock returns whether or not a block with the given hash exists in the database.

The interface contract guarantees at least the following errors will be returned (other implementation-specific errors are possible):

- ErrTxClosed if the transaction has already been closed

Other errors are possible depending on the implementation.

HasBlock is referenced in 2 repositories

github.com/btcsuite/btcd

...