Documentation ¶
Index ¶
- Constants
- func DeliveredHashKey(bh types.Hash) ds.Key
- func DeliveredKey(slot structs.Slot) ds.Key
- func DeliveredNumKey(bn uint64) ds.Key
- func DeliveredPubkeyKey(pk types.PublicKey) ds.Key
- func HeaderHashKey(bh types.Hash) ds.Key
- func HeaderKeyContent(slot uint64, blockHash string, builderHash string) ds.Key
- func HeaderNumKey(bn uint64) ds.Key
- type DB
- type DBInter
- type Datastore
- func (s *Datastore) GetBuilderBlockSubmissions(ctx context.Context, headSlot uint64, query structs.SubmissionTraceQuery) (events []structs.BidTraceWithTimestamp, err error)
- func (s *Datastore) GetDeliveredPayloads(ctx context.Context, headSlot uint64, query structs.PayloadTraceQuery) ([]structs.BidTraceExtended, error)
- func (s *Datastore) PutBuilderBlockSubmission(ctx context.Context, bid structs.BidTraceWithTimestamp, isMostProfitable bool) (err error)
- func (s *Datastore) PutDelivered(ctx context.Context, slot structs.Slot, trace structs.DeliveredTrace, ...) error
Constants ¶
View Source
const (
HeaderContentPrefix = "hc"
)
Variables ¶
This section is empty.
Functions ¶
func DeliveredNumKey ¶
func HeaderKeyContent ¶
func HeaderNumKey ¶
Types ¶
type Datastore ¶
func (*Datastore) GetBuilderBlockSubmissions ¶
func (s *Datastore) GetBuilderBlockSubmissions(ctx context.Context, headSlot uint64, query structs.SubmissionTraceQuery) (events []structs.BidTraceWithTimestamp, err error)
func (*Datastore) GetDeliveredPayloads ¶
func (s *Datastore) GetDeliveredPayloads(ctx context.Context, headSlot uint64, query structs.PayloadTraceQuery) ([]structs.BidTraceExtended, error)
func (*Datastore) PutBuilderBlockSubmission ¶
Click to show internal directories.
Click to hide internal directories.