Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2022 Changes in this version + type Block interface + SetStatus func(choices.Status) + type BlockWrapper struct + func (bw *BlockWrapper) Accept() error + func (bw *BlockWrapper) Reject() error + func (bw *BlockWrapper) Verify() error + type Config struct + BuildBlock func() (snowman.Block, error) + BytesToIDCacheSize int + DecidedCacheSize int + GetBlock func(ids.ID) (snowman.Block, error) + GetBlockIDAtHeight func(uint64) (ids.ID, error) + LastAcceptedBlock snowman.Block + MissingCacheSize int + UnmarshalBlock func([]byte) (snowman.Block, error) + UnverifiedCacheSize int + type State struct + func NewMeteredState(registerer prometheus.Registerer, config *Config) (*State, error) + func NewState(config *Config) *State + func (s *State) BuildBlock() (snowman.Block, error) + func (s *State) Flush() + func (s *State) GetBlock(blkID ids.ID) (snowman.Block, error) + func (s *State) GetBlockInternal(blkID ids.ID) (snowman.Block, error) + func (s *State) LastAccepted() (ids.ID, error) + func (s *State) LastAcceptedBlock() *BlockWrapper + func (s *State) LastAcceptedBlockInternal() snowman.Block + func (s *State) ParseBlock(b []byte) (snowman.Block, error) + func (s *State) SetLastAcceptedBlock(lastAcceptedBlock snowman.Block) error v1.0.0-alpha Nov 22, 2022