lmrpc

package
v1.24.2 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, MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeTokens

func MakeTokens(cfg *config.CurioConfig) (map[address.Address]string, error)

func MinerHandler added in v1.23.0

func MinerHandler(a api.StorageMiner, permissioned bool) (http.Handler, error)

MinerHandler returns a miner handler, to be mounted as-is on the server.

func ServeCurioMarketRPC

func ServeCurioMarketRPC(db *harmonydb.DB, full api.Chain, maddr address.Address, conf *config.CurioConfig, listen string) error

func ServeCurioMarketRPCFromConfig

func ServeCurioMarketRPCFromConfig(db *harmonydb.DB, full api.Chain, cfg *config.CurioConfig) error

Types

type PieceIngester added in v1.23.0

type PieceIngester interface {
	AllocatePieceToSector(ctx context.Context, maddr address.Address, piece lpiece.PieceDealInfo, rawSize int64, source url.URL, header http.Header) (lapi.SectorOffset, error)
}

Jump to

Keyboard shortcuts

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