func (bi *BlockIndex) GetBlockNodeByHash(hash chainhash.Hash) *BlockNode {
	bi.lock.RLock()
	defer bi.lock.RUnlock()

	return bi.getBlockNodeByHash(hash)
}
// GetBlockNodeByHash gets a block node by hash.
GetBlockNodeByHash gets a block node by hash.
// GetBlockNodeByHash gets a block node by hash .
func (bi *BlockIndex) GetBlockNodeByHash(hash chainhash.Hash) *BlockNode {
	bi.lock.RLock()
	defer bi.lock.RUnlock()
	return bi.getBlockNodeByHash(hash)
}
func ( bi * BlockIndex ) GetBlockNodeByHash ( hash chainhash . Hash ) * BlockNode { bi . lock . RLock ( ) defer bi . lock . RUnlock ( ) return bi . getBlockNodeByHash ( hash ) }
GetBlockNodeByHash gets a block node by hash.
GetBlockNodeByHash gets a block node by hash .