Documentation ¶
Index ¶
- func Add(db sql.Executor, lid types.LayerID, cert *types.Certificate) error
- func GetHareOutput(db sql.Executor, lid types.LayerID) (types.BlockID, error)
- func SetHareOutput(db sql.Executor, lid types.LayerID, bid types.BlockID) error
- func SetHareOutputInvalid(db sql.Executor, lid types.LayerID, bid types.BlockID) error
- func SetInvalid(db sql.Executor, lid types.LayerID, bid types.BlockID) error
- func SetValid(db sql.Executor, lid types.LayerID, bid types.BlockID) error
- type CertValidity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHareOutput ¶
GetHareOutput returns the block that's valid as hare output for the specified layer. if there are more than one valid blocks, return types.EmptyBlockID.
func SetHareOutput ¶
func SetHareOutputInvalid ¶
Types ¶
type CertValidity ¶
type CertValidity struct { Block types.BlockID Cert *types.Certificate Valid bool }
Click to show internal directories.
Click to hide internal directories.