func (i *ShardBlockIndex) HasBlock(hash chainhash.Hash) bool {
	i.Lock.RLock()
	defer i.Lock.RUnlock()
	_, found := i.Index[hash]
	return found
}
// HasBlock returns true if the block index contains a certain block.
HasBlock returns true if the block index contains a certain block.
// HasBlock returns true if the block index contains a certain block .
func (i *ShardBlockIndex) HasBlock(hash chainhash.Hash) bool {
	i.Lock.RLock()
	defer i.Lock.RUnlock()
	_, found := i.Index[hash]
	return found
}
func ( i * ShardBlockIndex ) HasBlock ( hash chainhash . Hash ) bool { i . Lock . RLock ( ) defer i . Lock . RUnlock ( ) _ , found := i . Index [ hash ] return found }
HasBlock returns true if the block index contains a certain block.
HasBlock returns true if the block index contains a certain block .