Documentation ¶
Index ¶
- func Add(db sql.Executor, ballot *types.Ballot) error
- func CountByPubkeyLayer(db sql.Executor, lid types.LayerID, pubkey []byte) (int, error)
- func Get(db sql.Executor, id types.BallotID) (rst *types.Ballot, err error)
- func GetRefBallot(db sql.Executor, epochID types.EpochID, pubkey []byte) (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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountByPubkeyLayer ¶
CountByPubkeyLayer counts number of ballots in the layer for the pubkey.
func GetRefBallot ¶
func GetRefBallot(db sql.Executor, epochID types.EpochID, pubkey []byte) (ballotID types.BallotID, err error)
GetRefBallot gets a ref ballot for a layer and a pubkey.
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.