func (s *DefaultStore) Height() uint64 {
	s.mtx.RLock()
	defer s.mtx.RUnlock()
	return s.height
}
Height returns height of the highest block saved in the Store.
package store
import (
	"encoding/binary"
	"encoding/json"
	"errors"
	"sync"
	"go.uber.org/multierr"
	"github.com/celestiaorg/optimint/state"
	"github.com/celestiaorg/optimint/types"
)
var (
	blockPrefix  = [1]byte{1}
	indexPrefix  = [1]byte{2}
	commitPrefix = [1]byte{3}
	statePreffix = [1]byte{4}
)
type DefaultStore struct {
	db KVStore
	height uint64
	mtx sync.RWMutex
}
var _ Store = &DefaultStore{}
func New(kv KVStore) Store {
	return &DefaultStore{
		db: kv,
	}
}