chain

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk struct {
	// contains filtered or unexported fields
}

Disk is a component used to access chain data from a badger database.

func FromDisk

func FromDisk(db *badger.DB) *Disk

FromDisk returns a new Disk chain that uses the given badger database.

func (*Disk) Collections

func (d *Disk) Collections(height uint64) ([]*flow.LightCollection, error)

Collections retrieves the collections at the given height.

func (*Disk) Commit

func (d *Disk) Commit(height uint64) (flow.StateCommitment, error)

Commit retrieves the state commitment at the given height.

func (*Disk) Events

func (d *Disk) Events(height uint64) ([]flow.Event, error)

Events retrieves the events at the given height.

func (*Disk) Guarantees added in v1.1.0

func (d *Disk) Guarantees(height uint64) ([]*flow.CollectionGuarantee, error)

Guarantees retrieves the guarantees at the given height.

func (*Disk) Header

func (d *Disk) Header(height uint64) (*flow.Header, error)

Header retrieves the block header at the given height.

func (*Disk) Results added in v1.1.0

func (d *Disk) Results(height uint64) ([]*flow.TransactionResult, error)

Results retrieves the results at the given height.

func (*Disk) Root

func (d *Disk) Root() (uint64, error)

Root retrieves the root height of the chain.

func (*Disk) Seals added in v1.1.0

func (d *Disk) Seals(height uint64) ([]*flow.Seal, error)

Seals retrieves the seals at the given height.

func (*Disk) Transactions

func (d *Disk) Transactions(height uint64) ([]*flow.TransactionBody, error)

Transactions retrieves the transactions at the given height.

Jump to

Keyboard shortcuts

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