proposals

package
v1.3.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(db sql.Executor, proposal *types.Proposal) error

Add adds a proposal for a given ID.

func DeleteBefore added in v1.1.6

func DeleteBefore(db sql.Executor, lid types.LayerID) error

func Get

func Get(db sql.Executor, id types.ProposalID) (proposal *types.Proposal, err error)

Get gets a proposal by a given ID.

func GetBlob

func GetBlob(db sql.Executor, id []byte) (proposal []byte, err error)

GetBlob loads proposal as an encoded blob, ready to be sent over the wire.

func GetByLayer

func GetByLayer(db sql.Executor, layerID types.LayerID) (proposals []*types.Proposal, err error)

GetByLayer gets proposals by a given layer ID.

func Has

func Has(db sql.Executor, id types.ProposalID) (bool, error)

Has checks if a proposal exists by a given ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL