chain

package
v0.31.9-decrease-wait-... Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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

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