Documentation ¶
Index ¶
- func Add(db sql.Executor, atx *types.VerifiedActivationTx) error
- func AddCheckpointed(db sql.Executor, catx *CheckpointAtx) error
- func All(db sql.Executor) ([]types.ATXID, error)
- func CommitmentATX(db sql.Executor, nodeID types.NodeID) (id types.ATXID, err error)
- func Get(db sql.Executor, id types.ATXID) (*types.VerifiedActivationTx, error)
- func GetAtxIDWithMaxHeight(db sql.Executor) (types.ATXID, error)
- func GetBlob(db sql.Executor, id []byte) (buf []byte, err error)
- func GetByEpochAndNodeID(db sql.Executor, epoch types.EpochID, nodeID types.NodeID) (*types.VerifiedActivationTx, error)
- func GetFirstIDByNodeID(db sql.Executor, nodeID types.NodeID) (id types.ATXID, 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 Has(db sql.Executor, id types.ATXID) (bool, error)
- func LatestEpoch(db sql.Executor) (types.EpochID, error)
- func VRFNonce(db sql.Executor, id types.NodeID, epoch types.EpochID) (nonce types.VRFPostIndex, err error)
- type CheckpointAtx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(db sql.Executor, atx *types.VerifiedActivationTx) error
Add adds an ATX for a given ATX ID.
func AddCheckpointed ¶
func AddCheckpointed(db sql.Executor, catx *CheckpointAtx) error
func CommitmentATX ¶
func GetAtxIDWithMaxHeight ¶
GetAtxIDWithMaxHeight returns the ID of the atx from the last epoch with the highest (or tied for the highest) tick height.
func GetByEpochAndNodeID ¶
func GetByEpochAndNodeID(db sql.Executor, epoch types.EpochID, nodeID types.NodeID) (*types.VerifiedActivationTx, error)
GetByEpochAndNodeID gets any ATX by the specified NodeID in the given epoch.
func GetFirstIDByNodeID ¶
GetFirstIDByNodeID gets the initial ATX ID for a given 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.
Types ¶
Click to show internal directories.
Click to hide internal directories.