Documentation ¶
Index ¶
- Variables
- func Add(db sql.Executor, block *types.Block) error
- func ContextualValidity(db sql.Executor, lid types.LayerID) ([]types.BlockContextualValidity, error)
- func Get(db sql.Executor, id types.BlockID) (rst *types.Block, err error)
- func GetLayer(db sql.Executor, id types.BlockID) (types.LayerID, error)
- func Has(db sql.Executor, id types.BlockID) (bool, error)
- func IDsInLayer(db sql.Executor, lid types.LayerID) ([]types.BlockID, error)
- func IsValid(db sql.Executor, id types.BlockID) (rst bool, err error)
- func Layer(db sql.Executor, lid types.LayerID) ([]*types.Block, error)
- func SetInvalid(db sql.Executor, id types.BlockID) error
- func SetValid(db sql.Executor, id types.BlockID) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrValidityNotDecided = errors.New("block validity undecided")
Functions ¶
func ContextualValidity ¶
func ContextualValidity(db sql.Executor, lid types.LayerID) ([]types.BlockContextualValidity, error)
ContextualValidity returns tuples with block id and contextual validity for all blocks in the layer.
func IDsInLayer ¶
IDsInLayer returns list of block ids in the layer.
func SetInvalid ¶
SetInvalid updates blocks to an invalid status.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.