func (db *InMemoryDB) SetHeadBlock(h chainhash.Hash, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	db.head = h
	return nil
}
// SetHeadBlock sets the head block.
SetHeadBlock sets the head block.
// SetHeadBlock sets the head block .
func (db *InMemoryDB) SetHeadBlock(h chainhash.Hash, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	db.head = h
	return nil
}
func ( db * InMemoryDB ) SetHeadBlock ( h chainhash . Hash , transaction ... interface { } ) error { db . lock . Lock ( ) defer db . lock . Unlock ( ) db . head = h return nil }
SetHeadBlock sets the head block.
SetHeadBlock sets the head block .