func (r *StateRestore) IndexRestore(idx *IndexEntry) error {
	if err := r.txn.Insert("index", idx); err != nil {
		return fmt.Errorf("index insert failed: %v", err)
	}
	return nil
}
// IndexRestore is used to restore an index
IndexRestore is used to restore an index
// IndexRestore is used to restore an index
func (r *StateRestore) IndexRestore(idx *IndexEntry) error {
	if err := r.txn.Insert("index", idx); err != nil {
		return fmt.Errorf("index insert failed: %v", err)
	}
	return nil
}
func ( r * StateRestore ) IndexRestore ( idx * IndexEntry ) error { if err := r . txn . Insert ( " " , idx ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
IndexRestore is used to restore an index
IndexRestore is used to restore an index