private void updateStatePostSeal ( ) { // Update metadata. this . metadata . markSealedInStorage ( ) ; this . operations . removeFirst ( ) ; // Validate we have no more unexpected items and then close (as we shouldn't be getting anything else). assert this . operations . size ( ) - this . truncateCount . get ( ) == 0 : "there are outstanding non-truncate operations after a Seal" ; this . hasSealPending . set ( false ) ; }
Updates the metadata and the internal state after a Seal was completed .