func (db *InMemoryDB) SetFinalizedHead(h chainhash.Hash, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	db.finalized = h
	return nil
}
// SetFinalizedHead sets the finalized head for the chain in the database.
SetFinalizedHead sets the finalized head for the chain in the database.
// SetFinalizedHead sets the finalized head for the chain in the database .
func (db *InMemoryDB) SetFinalizedHead(h chainhash.Hash, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	db.finalized = h
	return nil
}
func ( db * InMemoryDB ) SetFinalizedHead ( h chainhash . Hash , transaction ... interface { } ) error { db . lock . Lock ( ) defer db . lock . Unlock ( ) db . finalized = h return nil }
SetFinalizedHead sets the finalized head for the chain in the database.
SetFinalizedHead sets the finalized head for the chain in the database .