tools

package
v1.3000.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapWithTimeout

func WrapWithTimeout(lotusFunc LotusRPCWrapper, timeout time.Duration) error

WrapWithTimeout executes lotusFunc but return an error after the `timeout`

Types

type Cache

type Cache struct {
	Node *api.FullNode
	// contains filtered or unexported fields
}

In-memory database

func (*Cache) GetActorCode

func (m *Cache) GetActorCode(address address.Address) (cid.Cid, error)

func (*Cache) GetActorPubKey added in v0.801.2

func (m *Cache) GetActorPubKey(address address.Address, reverse bool) (string, error)

func (*Cache) NewImpl

func (m *Cache) NewImpl(node *api.FullNode)

type Database

type Database interface {
	NewImpl(*api.FullNode)
	// Address-ActorCID Map
	GetActorCode(address address.Address) (cid.Cid, error)

	// Address-ActorPubkey Map
	GetActorPubKey(address address.Address, reverse bool) (string, error)
	// contains filtered or unexported methods
}
var ActorsDB Database

type LotusRPCWrapper

type LotusRPCWrapper func()

Jump to

Keyboard shortcuts

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