Documentation ¶
Index ¶
- func FirstAppliedInEpoch(db sql.Executor, epoch types.EpochID) (types.BlockID, error)
- func GetAggHashes(db sql.Executor, from, to types.LayerID, by uint32) (hashes []types.Hash32, err error)
- func GetAggregatedHash(db sql.Executor, lid types.LayerID) (types.Hash32, error)
- func GetApplied(db sql.Executor, lid types.LayerID) (rst types.BlockID, err error)
- func GetLastApplied(db sql.Executor) (types.LayerID, error)
- func GetLatestStateHash(db sql.Executor) (rst types.Hash32, err error)
- func GetProcessed(db sql.Executor) (types.LayerID, error)
- func GetStateHash(db sql.Executor, lid types.LayerID) (rst types.Hash32, err error)
- func GetWeakCoin(db sql.Executor, lid types.LayerID) (bool, error)
- func IterateAggHashes(db sql.Executor, from, to types.LayerID, by uint32, ...) error
- func IterateLayersWithBlockOps(db sql.Executor, operations builder.Operations, fn func(layer *Layer) bool) error
- func SetApplied(db sql.Executor, lid types.LayerID, applied types.BlockID) error
- func SetMeshHash(db sql.Executor, lid types.LayerID, aggHash types.Hash32) error
- func SetProcessed(db sql.Executor, lid types.LayerID) error
- func SetWeakCoin(db sql.Executor, lid types.LayerID, weakcoin bool) error
- func UnsetAppliedFrom(db sql.Executor, lid types.LayerID) error
- func UpdateStateHash(db sql.Executor, lid types.LayerID, hash types.Hash32) error
- type Layer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstAppliedInEpoch ¶ added in v1.1.10
func GetAggHashes ¶
func GetAggregatedHash ¶
GetAggregatedHash for layer.
func GetApplied ¶
GetApplied for the applied block for layer.
func GetLastApplied ¶
GetLastApplied for the applied block for layer.
func GetLatestStateHash ¶
GetLatestStateHash loads latest state hash.
func GetProcessed ¶
GetProcessed gets the highest layer processed.
func GetStateHash ¶
GetStateHash loads state hash for the layer.
func GetWeakCoin ¶
GetWeakCoin for layer.
func IterateAggHashes ¶ added in v1.4.1
func IterateLayersWithBlockOps ¶ added in v1.6.0
func SetApplied ¶
SetApplied for the layer to a block id.
func SetMeshHash ¶
SetMeshHash sets the aggregated hash up to the specified layer.
func SetProcessed ¶
SetProcessed sets a layer processed.
func SetWeakCoin ¶
SetWeakCoin for the layer.
func UnsetAppliedFrom ¶
UnsetAppliedFrom updates the applied block to nil for layer >= `lid`.
Types ¶
Click to show internal directories.
Click to hide internal directories.