func (sm *ShardStateManager) HasAny() map[chainhash.Hash]bool {
	sm.stateLock.RLock()
	defer sm.stateLock.RUnlock()

	hasBlock := make(map[chainhash.Hash]bool)

	for k := range sm.stateMap {
		hasBlock[k] = true
	}

	return hasBlock
}
// HasAny checks what blocks are in the state map.
HasAny checks what blocks are in the state map.
// HasAny checks what blocks are in the state map .
func (sm *ShardStateManager) HasAny() map[chainhash.Hash]bool {
	sm.stateLock.RLock()
	defer sm.stateLock.RUnlock()
	hasBlock := make(map[chainhash.Hash]bool)
	for k := range sm.stateMap {
		hasBlock[k] = true
	}
	return hasBlock
}
func ( sm * ShardStateManager ) HasAny ( ) map [ chainhash . Hash ] bool { sm . stateLock . RLock ( ) defer sm . stateLock . RUnlock ( ) hasBlock := make ( map [ chainhash . Hash ] bool ) for k := range sm . stateMap { hasBlock [ k ] = true } return hasBlock }
HasAny checks what blocks are in the state map.
HasAny checks what blocks are in the state map .