func (db *InMemoryDB) SetFinalizedState(state primitives.State, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	db.finalizedState = state
	return nil
}
// SetFinalizedState sets the finalized state
SetFinalizedState sets the finalized state
// SetFinalizedState sets the finalized state
func (db *InMemoryDB) SetFinalizedState(state primitives.State, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	db.finalizedState = state
	return nil
}
func ( db * InMemoryDB ) SetFinalizedState ( state primitives . State , transaction ... interface { } ) error { db . lock . Lock ( ) defer db . lock . Unlock ( ) db . finalizedState = state return nil }
SetFinalizedState sets the finalized state
SetFinalizedState sets the finalized state