blocks

package
v0.0.0-...-8b332e1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksService

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

func Init

func Init(config *config.Config, ds *datastore.Datastore, apiClient *client.APIClient) (*BlocksService, error)

func (*BlocksService) GetByHeight

func (s *BlocksService) GetByHeight(height abi.ChainEpoch) (*types.TipSet, bool)

func (*BlocksService) GetGenesis

func (s *BlocksService) GetGenesis() *types.TipSet

func (*BlocksService) GetHead

func (s *BlocksService) GetHead() *types.TipSet

func (*BlocksService) Push

func (s *BlocksService) Push(blocks []*types.BlockHeader)

Jump to

Keyboard shortcuts

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