tstracker

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0, MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrackingChainstore

type TrackingChainstore interface {
	blockstore.Blockstore
	blockstore.Viewer
	iface.Datasource
	io.Closer
	DeleteMany([]cid.Cid) error
	View(cid.Cid, func([]byte) error) error
	CurrentDbTipSetKey(context.Context) (*types.TipSetKey, abi.ChainEpoch, error)
	GetCurrentTipset(ctx context.Context) []cid.Cid
	StoreTipSetVist(ctx context.Context, ts *types.TipSet, isHeaChange bool) error
}

func NewTrackingPgChainstore

func NewTrackingPgChainstore(ctx context.Context, conn string) (TrackingChainstore, error)

func NewTrackingPgChainstoreFromEnv

func NewTrackingPgChainstoreFromEnv(ctx context.Context, readOnly bool) (TrackingChainstore, error)

Jump to

Keyboard shortcuts

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