Documentation ¶
Index ¶
- func Add(db sql.Executor, atx *types.VerifiedActivationTx, timestamp time.Time) error
- func DeleteATXsByNodeID(db sql.Executor, nodeID types.NodeID) error
- func Get(db sql.Executor, id types.ATXID) (atx *types.VerifiedActivationTx, err error)
- func GetBlob(db sql.Executor, id []byte) (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 GetPositioningID(db sql.Executor) (types.ATXID, error)
- func GetTimestamp(db sql.Executor, id types.ATXID) (timestamp time.Time, err error)
- func Has(db sql.Executor, id types.ATXID) (bool, 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 GetPositioningID ¶
GetPositioningID returns atx id from the last epoch with the highest tick height.
func GetTimestamp ¶
GetTimestamp gets an ATX timestamp by a given ATX ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.