Documentation ¶
Index ¶
- func GetAggregatedHash(db sql.Executor, lid types.LayerID) (types.Hash32, error)
- func GetByStatus(db sql.Executor, status Status) (rst types.LayerID, err error)
- func GetHareOutput(db sql.Executor, lid types.LayerID) (rst types.BlockID, err error)
- func GetHash(db sql.Executor, lid types.LayerID) (types.Hash32, error)
- func SetAggregatedHash(db sql.Executor, lid types.LayerID, hash types.Hash32) error
- func SetHareOutput(db sql.Executor, lid types.LayerID, output types.BlockID) error
- func SetHash(db sql.Executor, lid types.LayerID, hash types.Hash32) error
- func SetStatus(db sql.Executor, lid types.LayerID, status Status) error
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAggregatedHash ¶
GetAggregatedHash for layer.
func GetByStatus ¶
GetByStatus return latest layer with the status.
func GetHareOutput ¶
GetHareOutput for layer.
func SetAggregatedHash ¶
SetAggregatedHash updates aggregated hash for layer.
func SetHareOutput ¶
SetHareOutput for the layer to a block id.
Types ¶
Click to show internal directories.
Click to hide internal directories.