proposals

package
v0.3.4-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 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 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