Documentation ¶
Index ¶
- func Add(db sql.Executor, lid types.LayerID, cert *types.Certificate) error
- func CertifiedBlock(db sql.Executor, lid types.LayerID) (types.BlockID, error)
- func DeleteCertBefore(db sql.Executor, lid types.LayerID) error
- func FirstInEpoch(db sql.Executor, epoch types.EpochID) (types.BlockID, 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 CertifiedBlock ¶ added in v1.1.0
func DeleteCertBefore ¶ added in v1.1.10
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.