Documentation ¶
Index ¶
- func Add(db sql.Executor, atx *types.ActivationTx, timestamp time.Time) error
- func DeleteATXsByNodeID(db sql.Executor, nodeID types.NodeID) error
- func Get(db sql.Executor, id types.ATXID) (atx *types.ActivationTx, err error)
- func GetBlob(db sql.Executor, id types.ATXID) (buf []byte, err error)
- func GetIDByEpochAndNodeID(db sql.Executor, epoch types.EpochID, nodeID types.NodeID) (id types.ATXID, err error)
- func GetIDsByEpoch(db sql.Executor, epoch types.EpochID) (ids []types.ATXID, err error)
- func GetLastIDByNodeID(db sql.Executor, nodeID types.NodeID) (id types.ATXID, err error)
- func GetTimestamp(db sql.Executor, id types.ATXID) (timestamp time.Time, err error)
- func GetTop(db sql.Executor) (id types.ATXID, err error)
- func Has(db sql.Executor, id types.ATXID) (bool, error)
- func UpdateTopIfNeeded(db sql.Executor, atx *types.ActivationTx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteATXsByNodeID ¶
DeleteATXsByNodeID deletes ATXs by node ID.
func GetIDByEpochAndNodeID ¶
func GetIDByEpochAndNodeID(db sql.Executor, epoch types.EpochID, nodeID types.NodeID) (id types.ATXID, err error)
GetIDByEpochAndNodeID gets an ATX ID for a given epoch and node ID.
func GetIDsByEpoch ¶
GetIDsByEpoch gets ATX IDs for a given epoch.
func GetLastIDByNodeID ¶
GetLastIDByNodeID gets the last ATX ID for a given node ID.
func GetTimestamp ¶
GetTimestamp gets an ATX timestamp by a given ATX ID.
func GetTop ¶
GetTop gets a top ATX (positioning ATX candidate) for a given ATX ID. The top ATX is the one with the highest layer ID.
func UpdateTopIfNeeded ¶
func UpdateTopIfNeeded(db sql.Executor, atx *types.ActivationTx) error
UpdateTopIfNeeded updates top ATX if needed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.