ethhashlookup

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type EthTxHashLookup

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

func NewTransactionHashLookup

func NewTransactionHashLookup(path string) (*EthTxHashLookup, error)

func (*EthTxHashLookup) Close

func (ei *EthTxHashLookup) Close() error

func (*EthTxHashLookup) DeleteEntriesOlderThan

func (ei *EthTxHashLookup) DeleteEntriesOlderThan(days int) (int64, error)

func (*EthTxHashLookup) GetCidFromHash

func (ei *EthTxHashLookup) GetCidFromHash(txHash types.EthHash) (cid.Cid, error)

func (*EthTxHashLookup) GetHashFromCid

func (ei *EthTxHashLookup) GetHashFromCid(c cid.Cid) (types.EthHash, error)

func (*EthTxHashLookup) UpsertHash

func (ei *EthTxHashLookup) UpsertHash(txHash types.EthHash, c cid.Cid) error

Jump to

Keyboard shortcuts

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