func (db *InMemoryDB) GetFinalizedState(transaction ...interface{}) (*primitives.State, error) {
	db.lock.Lock()
	defer db.lock.Unlock()
	return &db.finalizedState, nil
}
// GetFinalizedState gets the finalized state from the database.
GetFinalizedState gets the finalized state from the database.
// GetFinalizedState gets the finalized state from the database .
func (db *InMemoryDB) GetFinalizedState(transaction ...interface{}) (*primitives.State, error) {
	db.lock.Lock()
	defer db.lock.Unlock()
	return &db.finalizedState, nil
}
func ( db * InMemoryDB ) GetFinalizedState ( transaction ... interface { } ) ( * primitives . State , error ) { db . lock . Lock ( ) defer db . lock . Unlock ( ) return & db . finalizedState , nil }
GetFinalizedState gets the finalized state from the database.
GetFinalizedState gets the finalized state from the database .