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 LayerNoMalicious(db sql.Executor, lid types.LayerID) (rst []*types.Ballot, err error)
- func LoadBlob(ctx context.Context, db sql.Executor, id []byte, b *sql.Blob) error
- func UpdateBlob(db sql.Executor, bid types.BallotID, blob []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFirstInEpoch ¶
func FirstInEpoch ¶
func GetBlobSizes ¶ added in v1.4.1
GetBlobSizes returns the sizes of the blobs corresponding to ballots with specified ids. For non-existent balots, the corresponding items are set to -1.
func IDsInLayer ¶
IDsInLayer returns ballots ids in the layer.
func LastInEpoch ¶ added in v1.2.2
func LatestLayer ¶
LatestLayer gets the highest layer with ballots.
func LayerBallotByNodeID ¶
func LayerBallotByNodeID(db sql.Executor, lid types.LayerID, nodeID types.NodeID) (*types.Ballot, error)
LayerBallotByNodeID returns any ballot by the specified NodeID in a given layer.
func LayerNoMalicious ¶ added in v1.1.10
LayerNoMalicious returns full ballot without joining malicious identities.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.