Documentation ¶
Index ¶
- func Add(db sql.Executor, ballot *types.Ballot) error
- func AllFirstInEpoch(db sql.Executor, epoch types.EpochID) ([]*types.Ballot, error)
- func CountByPubkeyLayer(db sql.Executor, lid types.LayerID, nodeID types.NodeID) (int, error)
- func FirstInEpoch(db sql.Executor, atx types.ATXID, epoch types.EpochID) (*types.Ballot, error)
- func Get(db sql.Executor, id types.BallotID) (rst *types.Ballot, err error)
- func GetRefBallot(db sql.Executor, epochID types.EpochID, nodeID types.NodeID) (ballotID types.BallotID, err error)
- func Has(db sql.Executor, id types.BallotID) (bool, error)
- func IDsInLayer(db sql.Executor, lid types.LayerID) (rst []types.BallotID, err error)
- func LatestLayer(db sql.Executor) (types.LayerID, error)
- func Layer(db sql.Executor, lid types.LayerID) (rst []*types.Ballot, err error)
- func LayerBallotByNodeID(db sql.Executor, lid types.LayerID, nodeID types.NodeID) (*types.Ballot, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFirstInEpoch ¶
func CountByPubkeyLayer ¶
CountByPubkeyLayer counts number of ballots in the layer for the nodeID.
func FirstInEpoch ¶
func GetRefBallot ¶
func GetRefBallot(db sql.Executor, epochID types.EpochID, nodeID types.NodeID) (ballotID types.BallotID, err error)
GetRefBallot gets a ref ballot for a layer and a nodeID.
func IDsInLayer ¶
IDsInLayer returns ballots ids in the layer.
func LatestLayer ¶
LatestLayer gets the highest layer with ballots.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.