Documentation
¶
Index ¶
- func Add(db sql.Executor, ballot *types.Ballot) error
- func AllFirstInEpoch(db sql.Executor, epoch types.EpochID) ([]*types.Ballot, 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 GetBlobSizes(db sql.Executor, ids [][]byte) (sizes []int, 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 LastInEpoch(db sql.Executor, atx types.ATXID, epoch types.EpochID) (*types.Ballot, 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)
- func LoadBlob(ctx context.Context, db sql.Executor, id []byte, b *sql.Blob) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFirstInEpoch ¶
func FirstInEpoch ¶
FirstInEpoch returns the first ballot referencing the specified ATX in the epoch. NOTE: it does not mark the ballot as malicious, if the smesher that published the ATX is!
func GetBlobSizes ¶ added in v1.4.1
GetBlobSizes returns the sizes of the blobs corresponding to ballots with specified ids. For non-existent ballots, the corresponding items are set to -1.
func IDsInLayer ¶
IDsInLayer returns ballots ids in the layer.
func LastInEpoch ¶ added in v1.2.2
LastInEpoch returns the last ballot referencing the specified ATX in the epoch. NOTE: it does not mark the ballot as malicious, if the smesher that published the ATX is!
func LatestLayer ¶
LatestLayer gets the highest layer with ballots.
func Layer ¶
Layer returns full body ballot for layer. NOTE: this function does not mark the ballot as malicious, if the smesher that published the ATX is!
Types ¶
This section is empty.