Description

BlockByHash returns the block from the main chain with the given hash with the appropriate chain height set.

This function is safe for concurrent access.

BlockByHash is referenced in 2 repositories

github.com/btcsuite/btcd

...