Versions in this module Expand all Collapse all v1 v1.4.5 Jul 11, 2021 Changes in this version + type Block interface + SetStatus func(choices.Status) + type BlockWrapper struct + func (bw *BlockWrapper) Accept() error + func (bw *BlockWrapper) Parent() snowman.Block + func (bw *BlockWrapper) Reject() error + func (bw *BlockWrapper) Verify() error + type Config struct + BuildBlock func() (snowman.Block, error) + 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, namespace string, 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)