func (sm *StateManager) SetBlockState(blockHash chainhash.Hash, state *primitives.State) error {
	// add the state to the state map
	sm.stateMapLock.Lock()
	defer sm.stateMapLock.Unlock()
	//logrus.WithField("hash", blockHash.String()).Debug("setting block state")
	sm.stateMap[blockHash] = newStateDerivedFromBlock(state)
	return nil
}
// SetBlockState sets the state for a certain block. This SHOULD ONLY
// BE USED FOR THE GENESIS BLOCK!
SetBlockState sets the state for a certain block. This SHOULD ONLY
BE USED FOR THE GENESIS BLOCK!
// SetBlockState sets the state for a certain block . This SHOULD ONLY // BE USED FOR THE GENESIS BLOCK!
func (sm *StateManager) SetBlockState(blockHash chainhash.Hash, state *primitives.State) error {
	sm.stateMapLock.Lock()
	defer sm.stateMapLock.Unlock()
	sm.stateMap[blockHash] = newStateDerivedFromBlock(state)
	return nil
}
func ( sm * StateManager ) SetBlockState ( blockHash chainhash . Hash , state * primitives . State ) error { sm . stateMapLock . Lock ( ) defer sm . stateMapLock . Unlock ( ) sm . stateMap [ blockHash ] = newStateDerivedFromBlock ( state ) return nil }
SetBlockState sets the state for a certain block.
SetBlockState sets the state for a certain block .
// add the state to the state map //logrus.WithField("hash", blockHash.String()).Debug("setting block state")