func (db *InMemoryDB) SetBlock(b primitives.Block, transaction ...interface{}) error {
	db.lock.Lock()
	blockHash, _ := ssz.HashTreeRoot(b)
	db.DB[blockHash] = b
	db.lock.Unlock()
	return nil
}
// SetBlock adds the block to storage
SetBlock adds the block to storage
// SetBlock adds the block to storage
func (db *InMemoryDB) SetBlock(b primitives.Block, transaction ...interface{}) error {
	db.lock.Lock()
	blockHash, _ := ssz.HashTreeRoot(b)
	db.DB[blockHash] = b
	db.lock.Unlock()
	return nil
}
func ( db * InMemoryDB ) SetBlock ( b primitives . Block , transaction ... interface { } ) error { db . lock . Lock ( ) blockHash , _ := ssz . HashTreeRoot ( b ) db . DB [ blockHash ] = b db . lock . Unlock ( ) return nil }
SetBlock adds the block to storage
SetBlock adds the block to storage