code: func (s *store) initState() error {
  	var err error
  	var blist lastUpdatedOldBlocksList
  	if s.isEmpty, s.lastCommittedBlock, err = s.getLastCommittedBlockNum(); err != nil {
  		return err
  	}
  	if s.batchPending, err = s.hasPendingCommit(); err != nil {
  		return err
  	}
  	if blist, err = s.getLastUpdatedOldBlocksList(); err != nil {
  		return err
  	}
  	if len(blist) > 0 {
  		s.isLastUpdatedOldBlocksSet = true
  	} // false if not set
  
  	return nil
  }
docs: //////// store functions  ////////////////
  //////////////////////////////////////////