blockmeta

package
v0.9.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIs []*eos.API
View Source
var ExtraAPIs []*eos.API

Functions

func IrrIDFromAPI

func IrrIDFromAPI(ctx context.Context, _ uint64, libNum uint64) (string, error)

Types

type EOSBlockmetaDB

type EOSBlockmetaDB struct {
	Driver trxdb.DB
}

func (*EOSBlockmetaDB) BlockIDAfter

func (db *EOSBlockmetaDB) BlockIDAfter(ctx context.Context, start time.Time, inclusive bool) (id string, foundtime time.Time, err error)

func (*EOSBlockmetaDB) BlockIDAt

func (db *EOSBlockmetaDB) BlockIDAt(ctx context.Context, start time.Time) (id string, err error)

func (*EOSBlockmetaDB) BlockIDBefore

func (db *EOSBlockmetaDB) BlockIDBefore(ctx context.Context, start time.Time, inclusive bool) (id string, foundtime time.Time, err error)

func (*EOSBlockmetaDB) GetForkPreviousBlocks

func (db *EOSBlockmetaDB) GetForkPreviousBlocks(ctx context.Context, forkTop bstream.BlockRef) ([]bstream.BlockRef, error)

func (*EOSBlockmetaDB) GetIrreversibleIDAtBlockID

func (db *EOSBlockmetaDB) GetIrreversibleIDAtBlockID(ctx context.Context, id string) (ref bstream.BlockRef, err error)

func (*EOSBlockmetaDB) GetIrreversibleIDAtBlockNum

func (db *EOSBlockmetaDB) GetIrreversibleIDAtBlockNum(ctx context.Context, num uint64) (ref bstream.BlockRef, err error)

func (*EOSBlockmetaDB) GetLastWrittenBlockID

func (db *EOSBlockmetaDB) GetLastWrittenBlockID(ctx context.Context) (blockID string, err error)

Jump to

Keyboard shortcuts

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