store

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a store to save on-chain and metadata information about the chain.

func New

func New(ds *kt.Datastore) (*Store, error)

New returns a new *Store.

func (*Store) GetIndex

func (s *Store) GetIndex() (miner.IndexSnapshot, error)

GetIndex gets the complete stored metadata and on-chain index.

func (*Store) SaveMetadata

func (s *Store) SaveMetadata(index miner.MetaIndex) error

SaveMetadata creates/updates metadata information of miners.

func (*Store) SaveOnChain

func (s *Store) SaveOnChain(ctx context.Context, index miner.ChainIndex) error

SaveOnChain creates/updates on-chain information of miners.

Jump to

Keyboard shortcuts

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