Documentation ¶
Index ¶
- Constants
- Variables
- func APISecret(keystore types.KeyStore, lr repo.LockedRepo) (*dtypes.APIAlg, error)
- func AddressSelector(addrConf *config.MinerAddressConfig) func() (*ctladdr.AddressSelector, error)
- func BadgerHotBlockstore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.HotBlockstore, error)
- func BasicDealFilter(cfg config.DealmakingConfig, user dtypes.StorageDealFilter) ...
- func BuiltinBootstrap() (dtypes.BootstrapPeers, error)
- func BuiltinDrandConfig() dtypes.DrandSchedule
- func ChainBitswap(lc fx.Lifecycle, mctx helpers.MetricsCtx, host host.Host, rt routing.Routing, ...) dtypes.ChainBitswap
- func ChainBlockService(bs dtypes.ExposedBlockstore, rem dtypes.ChainBitswap) dtypes.ChainBlockService
- func ChainFlatBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.UniversalBlockstore) (dtypes.ChainBlockstore, error)
- func ChainSplitBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.SplitBlockstore) (dtypes.ChainBlockstore, error)
- func ChainStore(lc fx.Lifecycle, mctx helpers.MetricsCtx, cbs dtypes.ChainBlockstore, ...) *store.ChainStore
- func CheckFdLimit(min uint64) func(al *alerting.Alerting)
- func ClientBlockstore() dtypes.ClientBlockstore
- func ClientImportMgr(ds dtypes.MetadataDS, r repo.LockedRepo) (dtypes.ClientImportMgr, error)
- func ConfigBootstrap(peers []string) func() (dtypes.BootstrapPeers, error)
- func ConnectSealingService(apiInfo string) func(mctx helpers.MetricsCtx, lc fx.Lifecycle) (MinerSealingService, error)
- func ConnectStorageService(apiInfo string) func(mctx helpers.MetricsCtx, lc fx.Lifecycle) (MinerStorageService, error)
- func DAGStore(cfg config.DAGStoreConfig) ...
- func Datastore(disableLog bool) ...
- func DiscardColdBlockstore(lc fx.Lifecycle, bs dtypes.UniversalBlockstore) (dtypes.ColdBlockstore, error)
- func DoSetGenesis(_ dtypes.AfterGenesisSet)
- func DrandBootstrap(ds dtypes.DrandSchedule) (dtypes.DrandBootstrap, error)
- func EnableStoringEvents(cs *store.ChainStore)
- func EthEventAPI(cfg config.FevmConfig) ...
- func EthModuleAPI(cfg config.FevmConfig) ...
- func ExposedSplitBlockstore(_ fx.Lifecycle, s dtypes.SplitBlockstore) dtypes.ExposedBlockstore
- func ExtractEnabledMinerSubsystems(cfg config.MinerSubsystemConfig) (res api.MinerSubsystems)
- func FallbackChainBlockstore(cbs dtypes.BasicChainBlockstore) dtypes.ChainBlockstore
- func FallbackStateBlockstore(sbs dtypes.BasicStateBlockstore) dtypes.StateBlockstore
- func GetParams(prover bool) func(spt abi.RegisteredSealProof) error
- func Graphsync(parallelTransfersForStorage uint64, parallelTransfersForRetrieval uint64) ...
- func HandleDeals(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, ...)
- func HandleIncomingBlocks(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.PubSub, s *chain.Syncer, ...)
- func HandleIncomingMessages(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.PubSub, ...)
- func HandleMigrateClientFunds(lc fx.Lifecycle, mctx helpers.MetricsCtx, ds dtypes.MetadataDS, ...)
- func HandleMigrateProviderFunds(lc fx.Lifecycle, ds dtypes.MetadataDS, node api.FullNode, ...)
- func HandlePaychManager(lc fx.Lifecycle, pm *paychmgr.Manager)
- func HandleRetrieval(host host.Host, lc fx.Lifecycle, m retrievalmarket.RetrievalProvider, ...)
- func IndexProvider(cfg config.IndexProviderConfig) ...
- func InitFallbackBlockstores(cbs dtypes.ChainBlockstore, sbs dtypes.StateBlockstore, ...) error
- func IpfsClientBlockstore(ipfsMaddr string, onlineMode bool) ...
- func IpfsRetrievalBlockstoreAccessor(ipfsBlockstore dtypes.ClientBlockstore) retrievalmarket.BlockstoreAccessor
- func IpfsStorageBlockstoreAccessor(ipfsBlockstore dtypes.ClientBlockstore) storagemarket.BlockstoreAccessor
- func KeyStore(lr repo.LockedRepo) (types.KeyStore, error)
- func LoadGenesis(genBytes []byte) func(fx.Lifecycle, helpers.MetricsCtx, dtypes.ChainBlockstore) Genesis
- func LocalStorage(mctx helpers.MetricsCtx, lc fx.Lifecycle, ls paths.LocalStorage, ...) (*paths.Local, error)
- func LockedRepo(lr repo.LockedRepo) func(lc fx.Lifecycle) repo.LockedRepo
- func MakeUuidWrapper(a v1api.RawFullNodeAPI) v1api.FullNode
- func MemoryBlockstore() dtypes.UniversalBlockstore
- func MemoryConstraints() system.MemoryConstraints
- func MemoryWatchdog(lr repo.LockedRepo, lc fx.Lifecycle, constraints system.MemoryConstraints)
- func MessagePool(lc fx.Lifecycle, mctx helpers.MetricsCtx, us stmgr.UpgradeSchedule, ...) (*messagepool.MessagePool, error)
- func MinerAddress(ds dtypes.MetadataDS) (dtypes.MinerAddress, error)
- func MinerID(ma dtypes.MinerAddress) (dtypes.MinerID, error)
- func NetworkName(mctx helpers.MetricsCtx, lc fx.Lifecycle, cs *store.ChainStore, ...) (dtypes.NetworkName, error)
- func NewClientDatastore(ds dtypes.MetadataDS) dtypes.ClientDatastore
- func NewClientGraphsyncDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.Graphsync, ds dtypes.MetadataDS, ...) (dtypes.ClientDataTransfer, error)
- func NewConsiderOfflineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOfflineRetrievalDealsConfigFunc, error)
- func NewConsiderOfflineStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOfflineStorageDealsConfigFunc, error)
- func NewConsiderOnlineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOnlineRetrievalDealsConfigFunc, error)
- func NewConsiderOnlineStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOnlineStorageDealsConfigFunc, error)
- func NewConsiderUnverifiedStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderUnverifiedStorageDealsConfigFunc, error)
- func NewConsiderVerifiedStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderVerifiedStorageDealsConfigFunc, error)
- func NewDefaultMaxFeeFunc(r repo.LockedRepo) dtypes.DefaultMaxFeeFunc
- func NewGetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.GetExpectedSealDurationFunc, error)
- func NewGetMaxDealStartDelayFunc(r repo.LockedRepo) (dtypes.GetMaxDealStartDelayFunc, error)
- func NewGetSealConfigFunc(r repo.LockedRepo) (dtypes.GetSealingConfigFunc, error)
- func NewLocalDiscovery(lc fx.Lifecycle, ds dtypes.MetadataDS) (*discoveryimpl.Local, error)
- func NewManager(mctx helpers.MetricsCtx, lc fx.Lifecycle, sm stmgr.StateManagerAPI, ...) *paychmgr.Manager
- func NewMinerAPI(cfg config.DAGStoreConfig) ...
- func NewPaychStore(ds dtypes.MetadataDS) *paychmgr.Store
- func NewProviderDataTransfer(lc fx.Lifecycle, net dtypes.ProviderTransferNetwork, ...) (dtypes.ProviderDataTransfer, error)
- func NewProviderPieceStore(lc fx.Lifecycle, ds dtypes.MetadataDS) (dtypes.ProviderPieceStore, error)
- func NewProviderTransferNetwork(h host.Host) dtypes.ProviderTransferNetwork
- func NewProviderTransport(h host.Host, gs dtypes.StagingGraphsync) dtypes.ProviderTransport
- func NewRPCClient(host host.Host) *rpc.Client
- func NewRPCServer(ctx context.Context, host host.Host, rpcHandler *RPCHandler) error
- func NewSetConsiderOfflineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.SetConsiderOfflineRetrievalDealsConfigFunc, error)
- func NewSetConsiderOnlineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.SetConsiderOnlineRetrievalDealsConfigFunc, error)
- func NewSetConsideringOfflineStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderOfflineStorageDealsConfigFunc, error)
- func NewSetConsideringOnlineStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderOnlineStorageDealsConfigFunc, error)
- func NewSetConsideringUnverifiedStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderUnverifiedStorageDealsConfigFunc, error)
- func NewSetConsideringVerifiedStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderVerifiedStorageDealsConfigFunc, error)
- func NewSetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.SetExpectedSealDurationFunc, error)
- func NewSetMaxDealStartDelayFunc(r repo.LockedRepo) (dtypes.SetMaxDealStartDelayFunc, error)
- func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error)
- func NewSetStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.SetStorageDealPieceCidBlocklistConfigFunc, error)
- func NewSlashFilter(ds dtypes.MetadataDS) *slashfilter.SlashFilter
- func NewStorageAsk(ctx helpers.MetricsCtx, fapi v1api.FullNode, ds dtypes.MetadataDS, ...) (*storedask.StoredAsk, error)
- func NewStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.StorageDealPieceCidBlocklistConfigFunc, error)
- func NewSyncer(params SyncerParams) (*chain.Syncer, error)
- func NoopGCReferenceProtector(_ fx.Lifecycle) dtypes.GCReferenceProtector
- func OpenFilesystemJournal(lr repo.LockedRepo, lc fx.Lifecycle, disabled journal.DisabledEvents) (journal.Journal, error)
- func PreflightChecks(mctx helpers.MetricsCtx, lc fx.Lifecycle, api v1api.FullNode, ...) error
- func RandomSchedule(lc fx.Lifecycle, mctx helpers.MetricsCtx, p RandomBeaconParams, ...) (beacon.Schedule, error)
- func RecordValidator(ps peerstore.Peerstore) record.Validator
- func RelayIndexerMessages(lc fx.Lifecycle, ps *pubsub.PubSub, nn dtypes.NetworkName, h host.Host, ...) error
- func RemoteStorage(lstor *paths.Local, si paths.SectorIndex, sa sealer.StorageAuth, ...) *paths.Remote
- func RetrievalBlockstoreAccessor(r repo.LockedRepo) (retrievalmarket.BlockstoreAccessor, error)
- func RetrievalClient(forceOffChain bool) ...
- func RetrievalDealFilter(userFilter dtypes.RetrievalDealFilter) ...
- func RetrievalNetwork(h host.Host) rmnet.RetrievalMarketNetwork
- func RetrievalPricingFunc(cfg config.DealmakingConfig) ...
- func RetrievalProvider(maddr dtypes.MinerAddress, adapter retrievalmarket.RetrievalProviderNode, ...) (retrievalmarket.RetrievalProvider, error)
- func RetrievalResolver(l *discoveryimpl.Local) discovery.PeerResolver
- func RunChainExchange(h host.Host, svc exchange.Server)
- func RunHello(mctx helpers.MetricsCtx, lc fx.Lifecycle, h host.Host, svc *hello.Service) error
- func RunPeerMgr(mctx helpers.MetricsCtx, lc fx.Lifecycle, pmgr *peermgr.PeerMgr)
- func SealProofType(maddr dtypes.MinerAddress, fnapi v1api.FullNode) (abi.RegisteredSealProof, error)
- func SealingPipeline(fc config.MinerFeeConfig) func(params SealingPipelineParams) (*sealing.Sealing, error)
- func SectorStorage(mctx helpers.MetricsCtx, lc fx.Lifecycle, lstor *paths.Local, stor paths.Store, ...) (*sealer.Manager, error)
- func SetGenesis(lc fx.Lifecycle, mctx helpers.MetricsCtx, cs *store.ChainStore, g Genesis) (dtypes.AfterGenesisSet, error)
- func SetupBlockProducer(lc fx.Lifecycle, ds dtypes.MetadataDS, api v1api.FullNode, ...) (*lotusminer.Miner, error)
- func SplitBlockstore(cfg *config.Chainstore) ...
- func SplitBlockstoreGCReferenceProtector(_ fx.Lifecycle, s dtypes.SplitBlockstore) dtypes.GCReferenceProtector
- func StagingBlockstore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.StagingBlockstore, error)
- func StagingGraphsync(parallelTransfersForStorage uint64, parallelTransfersForStoragePerPeer uint64, ...) ...
- func StateFlatBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.UniversalBlockstore) (dtypes.BasicStateBlockstore, error)
- func StateManager(lc fx.Lifecycle, cs *store.ChainStore, exec stmgr.Executor, ...) (*stmgr.StateManager, error)
- func StateSplitBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.SplitBlockstore) (dtypes.BasicStateBlockstore, error)
- func StorageAuth(ctx helpers.MetricsCtx, ca v0api.Common) (sealer.StorageAuth, error)
- func StorageAuthWithURL(apiInfo string) func(ctx helpers.MetricsCtx, ca v0api.Common) (sealer.StorageAuth, error)
- func StorageBlockstoreAccessor(importmgr dtypes.ClientImportMgr) storagemarket.BlockstoreAccessor
- func StorageClient(lc fx.Lifecycle, h host.Host, dataTransfer dtypes.ClientDataTransfer, ...) (storagemarket.StorageClient, error)
- func StorageNetworkName(ctx helpers.MetricsCtx, a v1api.FullNode) (dtypes.NetworkName, error)
- func StorageProvider(minerAddress dtypes.MinerAddress, storedAsk *storedask.StoredAsk, h host.Host, ...) (storagemarket.StorageProvider, error)
- func ToSealingConfig(dealmakingCfg config.DealmakingConfig, sealingCfg config.SealingConfig) sealiface.Config
- func UniversalBlockstore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.UniversalBlockstore, error)
- func UpgradeSchedule() stmgr.UpgradeSchedule
- func WindowPostScheduler(fc config.MinerFeeConfig, pc config.ProvingConfig) func(params SealingPipelineParams) (*wdpost.WindowPoStScheduler, error)
- type EventAPI
- type Genesis
- type IdxProv
- type JwtPayload
- type MinerSealingService
- type MinerStorageService
- type MpoolNonceAPI
- type PaychAPI
- type RPCHandler
- type RandomBeaconParams
- type SealingPipelineParams
- type SyncerParams
- type UuidWrapper
Constants ¶
const ( JWTSecretName = "auth-jwt-private" //nolint:gosec KTJwtHmacSecret = "jwt-hmac-secret" //nolint:gosec )
const ( EnvDAGStoreCopyConcurrency = "LOTUS_DAGSTORE_COPY_CONCURRENCY" DefaultDAGStoreDir = "dagstore" )
const ( // EnvWatchdogDisabled is an escape hatch to disable the watchdog explicitly // in case an OS/kernel appears to report incorrect information. The // watchdog will be disabled if the value of this env variable is 1. EnvWatchdogDisabled = "LOTUS_DISABLE_WATCHDOG" )
Variables ¶
var ManagerWorkPrefix = datastore.NewKey("/stmgr/calls")
var (
StagingAreaDirName = "deal-staging"
)
var WorkerCallsPrefix = datastore.NewKey("/worker/calls")
Functions ¶
func AddressSelector ¶
func AddressSelector(addrConf *config.MinerAddressConfig) func() (*ctladdr.AddressSelector, error)
func BadgerHotBlockstore ¶
func BadgerHotBlockstore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.HotBlockstore, error)
func BasicDealFilter ¶
func BasicDealFilter(cfg config.DealmakingConfig, user dtypes.StorageDealFilter) func(onlineOk dtypes.ConsiderOnlineStorageDealsConfigFunc, offlineOk dtypes.ConsiderOfflineStorageDealsConfigFunc, verifiedOk dtypes.ConsiderVerifiedStorageDealsConfigFunc, unverifiedOk dtypes.ConsiderUnverifiedStorageDealsConfigFunc, blocklistFunc dtypes.StorageDealPieceCidBlocklistConfigFunc, expectedSealTimeFunc dtypes.GetExpectedSealDurationFunc, startDelay dtypes.GetMaxDealStartDelayFunc, spn storagemarket.StorageProviderNode, r repo.LockedRepo, ) dtypes.StorageDealFilter
func BuiltinBootstrap ¶
func BuiltinBootstrap() (dtypes.BootstrapPeers, error)
func BuiltinDrandConfig ¶
func BuiltinDrandConfig() dtypes.DrandSchedule
func ChainBitswap ¶
func ChainBitswap(lc fx.Lifecycle, mctx helpers.MetricsCtx, host host.Host, rt routing.Routing, bs dtypes.ExposedBlockstore) dtypes.ChainBitswap
ChainBitswap uses a blockstore that bypasses all caches.
func ChainBlockService ¶
func ChainBlockService(bs dtypes.ExposedBlockstore, rem dtypes.ChainBitswap) dtypes.ChainBlockService
func ChainFlatBlockstore ¶
func ChainFlatBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.UniversalBlockstore) (dtypes.ChainBlockstore, error)
func ChainSplitBlockstore ¶
func ChainSplitBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.SplitBlockstore) (dtypes.ChainBlockstore, error)
func ChainStore ¶
func ChainStore(lc fx.Lifecycle, mctx helpers.MetricsCtx, cbs dtypes.ChainBlockstore, sbs dtypes.StateBlockstore, ds dtypes.MetadataDS, basebs dtypes.BaseBlockstore, weight store.WeightFunc, us stmgr.UpgradeSchedule, j journal.Journal) *store.ChainStore
func CheckFdLimit ¶
func ClientBlockstore ¶
func ClientBlockstore() dtypes.ClientBlockstore
TODO this should be removed.
func ClientImportMgr ¶
func ClientImportMgr(ds dtypes.MetadataDS, r repo.LockedRepo) (dtypes.ClientImportMgr, error)
func ConfigBootstrap ¶
func ConfigBootstrap(peers []string) func() (dtypes.BootstrapPeers, error)
func ConnectSealingService ¶
func ConnectSealingService(apiInfo string) func(mctx helpers.MetricsCtx, lc fx.Lifecycle) (MinerSealingService, error)
func ConnectStorageService ¶
func ConnectStorageService(apiInfo string) func(mctx helpers.MetricsCtx, lc fx.Lifecycle) (MinerStorageService, error)
func DAGStore ¶
func DAGStore(cfg config.DAGStoreConfig) func(lc fx.Lifecycle, r repo.LockedRepo, minerAPI mdagstore.MinerAPI, h host.Host) (*dagstore.DAGStore, *mdagstore.Wrapper, error)
DAGStore constructs a DAG store using the supplied minerAPI, and the user configuration. It returns both the DAGStore and the Wrapper suitable for passing to markets.
func Datastore ¶
func Datastore(disableLog bool) func(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.MetadataDS, error)
func DiscardColdBlockstore ¶
func DiscardColdBlockstore(lc fx.Lifecycle, bs dtypes.UniversalBlockstore) (dtypes.ColdBlockstore, error)
func DoSetGenesis ¶
func DoSetGenesis(_ dtypes.AfterGenesisSet)
func DrandBootstrap ¶
func DrandBootstrap(ds dtypes.DrandSchedule) (dtypes.DrandBootstrap, error)
func EnableStoringEvents ¶
func EnableStoringEvents(cs *store.ChainStore)
func EthEventAPI ¶
func EthEventAPI(cfg config.FevmConfig) func(helpers.MetricsCtx, repo.LockedRepo, fx.Lifecycle, *store.ChainStore, *stmgr.StateManager, EventAPI, *messagepool.MessagePool, full.StateAPI, full.ChainAPI) (*full.EthEvent, error)
func EthModuleAPI ¶
func EthModuleAPI(cfg config.FevmConfig) func(helpers.MetricsCtx, repo.LockedRepo, fx.Lifecycle, *store.ChainStore, *stmgr.StateManager, EventAPI, *messagepool.MessagePool, full.StateAPI, full.ChainAPI, full.MpoolAPI) (*full.EthModule, error)
func ExposedSplitBlockstore ¶
func ExposedSplitBlockstore(_ fx.Lifecycle, s dtypes.SplitBlockstore) dtypes.ExposedBlockstore
func ExtractEnabledMinerSubsystems ¶
func ExtractEnabledMinerSubsystems(cfg config.MinerSubsystemConfig) (res api.MinerSubsystems)
func FallbackChainBlockstore ¶
func FallbackChainBlockstore(cbs dtypes.BasicChainBlockstore) dtypes.ChainBlockstore
func FallbackStateBlockstore ¶
func FallbackStateBlockstore(sbs dtypes.BasicStateBlockstore) dtypes.StateBlockstore
func Graphsync ¶
func Graphsync(parallelTransfersForStorage uint64, parallelTransfersForRetrieval uint64) func(mctx helpers.MetricsCtx, lc fx.Lifecycle, r repo.LockedRepo, clientBs dtypes.ClientBlockstore, chainBs dtypes.ExposedBlockstore, h host.Host) (dtypes.Graphsync, error)
Graphsync creates a graphsync instance from the given loader and storer
func HandleDeals ¶
func HandleDeals(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, h storagemarket.StorageProvider, j journal.Journal)
func HandleIncomingBlocks ¶
func HandleIncomingBlocks(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.PubSub, s *chain.Syncer, bserv dtypes.ChainBlockService, chain *store.ChainStore, cns consensus.Consensus, h host.Host, nn dtypes.NetworkName)
func HandleIncomingMessages ¶
func HandleIncomingMessages(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.PubSub, stmgr *stmgr.StateManager, mpool *messagepool.MessagePool, h host.Host, nn dtypes.NetworkName, bootstrapper dtypes.Bootstrapper)
func HandleMigrateClientFunds ¶
func HandleMigrateClientFunds(lc fx.Lifecycle, mctx helpers.MetricsCtx, ds dtypes.MetadataDS, wallet full.WalletAPI, fundMgr *market.FundManager)
func HandleMigrateProviderFunds ¶
func HandleMigrateProviderFunds(lc fx.Lifecycle, ds dtypes.MetadataDS, node api.FullNode, minerAddress dtypes.MinerAddress)
func HandlePaychManager ¶
HandlePaychManager is called by dependency injection to set up hooks
func HandleRetrieval ¶
func HandleRetrieval(host host.Host, lc fx.Lifecycle, m retrievalmarket.RetrievalProvider, j journal.Journal)
func IndexProvider ¶
func IndexProvider(cfg config.IndexProviderConfig) func(params IdxProv, marketHost host.Host, dt dtypes.ProviderDataTransfer, maddr dtypes.MinerAddress, ps *pubsub.PubSub, nn dtypes.NetworkName) (provider.Interface, error)
func InitFallbackBlockstores ¶
func InitFallbackBlockstores(cbs dtypes.ChainBlockstore, sbs dtypes.StateBlockstore, rem dtypes.ChainBitswap) error
func IpfsClientBlockstore ¶
func IpfsClientBlockstore(ipfsMaddr string, onlineMode bool) func(helpers.MetricsCtx, fx.Lifecycle, dtypes.ClientImportMgr) (dtypes.ClientBlockstore, error)
IpfsClientBlockstore returns a ClientBlockstore implementation backed by an IPFS node. If ipfsMaddr is empty, a local IPFS node is assumed considering IPFS_PATH configuration. If ipfsMaddr is not empty, it will connect to the remote IPFS node with the provided multiaddress. The flag useForRetrieval indicates if the IPFS node will also be used for storing retrieving deals.
func IpfsRetrievalBlockstoreAccessor ¶
func IpfsRetrievalBlockstoreAccessor(ipfsBlockstore dtypes.ClientBlockstore) retrievalmarket.BlockstoreAccessor
func IpfsStorageBlockstoreAccessor ¶
func IpfsStorageBlockstoreAccessor(ipfsBlockstore dtypes.ClientBlockstore) storagemarket.BlockstoreAccessor
func LoadGenesis ¶
func LoadGenesis(genBytes []byte) func(fx.Lifecycle, helpers.MetricsCtx, dtypes.ChainBlockstore) Genesis
func LocalStorage ¶
func LocalStorage(mctx helpers.MetricsCtx, lc fx.Lifecycle, ls paths.LocalStorage, si paths.SectorIndex, urls paths.URLs) (*paths.Local, error)
func LockedRepo ¶
func LockedRepo(lr repo.LockedRepo) func(lc fx.Lifecycle) repo.LockedRepo
func MakeUuidWrapper ¶
func MakeUuidWrapper(a v1api.RawFullNodeAPI) v1api.FullNode
func MemoryBlockstore ¶
func MemoryBlockstore() dtypes.UniversalBlockstore
func MemoryConstraints ¶
func MemoryConstraints() system.MemoryConstraints
MemoryConstraints returns the memory constraints configured for this system.
func MemoryWatchdog ¶
func MemoryWatchdog(lr repo.LockedRepo, lc fx.Lifecycle, constraints system.MemoryConstraints)
MemoryWatchdog starts the memory watchdog, applying the computed resource constraints.
func MessagePool ¶
func MessagePool(lc fx.Lifecycle, mctx helpers.MetricsCtx, us stmgr.UpgradeSchedule, mpp messagepool.Provider, ds dtypes.MetadataDS, nn dtypes.NetworkName, j journal.Journal, protector dtypes.GCReferenceProtector) (*messagepool.MessagePool, error)
func MinerAddress ¶
func MinerAddress(ds dtypes.MetadataDS) (dtypes.MinerAddress, error)
func NetworkName ¶
func NetworkName(mctx helpers.MetricsCtx, lc fx.Lifecycle, cs *store.ChainStore, tsexec stmgr.Executor, syscalls vm.SyscallBuilder, us stmgr.UpgradeSchedule, _ dtypes.AfterGenesisSet) (dtypes.NetworkName, error)
func NewClientDatastore ¶
func NewClientDatastore(ds dtypes.MetadataDS) dtypes.ClientDatastore
NewClientDatastore creates a datastore for the client to store its deals
func NewClientGraphsyncDataTransfer ¶
func NewClientGraphsyncDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.Graphsync, ds dtypes.MetadataDS, r repo.LockedRepo) (dtypes.ClientDataTransfer, error)
NewClientGraphsyncDataTransfer returns a data transfer manager that just uses the clients's Client DAG service for transfers
func NewConsiderOfflineRetrievalDealsConfigFunc ¶
func NewConsiderOfflineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOfflineRetrievalDealsConfigFunc, error)
func NewConsiderOfflineStorageDealsConfigFunc ¶
func NewConsiderOfflineStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOfflineStorageDealsConfigFunc, error)
func NewConsiderOnlineRetrievalDealsConfigFunc ¶
func NewConsiderOnlineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOnlineRetrievalDealsConfigFunc, error)
func NewConsiderOnlineStorageDealsConfigFunc ¶
func NewConsiderOnlineStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOnlineStorageDealsConfigFunc, error)
func NewConsiderUnverifiedStorageDealsConfigFunc ¶
func NewConsiderUnverifiedStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderUnverifiedStorageDealsConfigFunc, error)
func NewConsiderVerifiedStorageDealsConfigFunc ¶
func NewConsiderVerifiedStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderVerifiedStorageDealsConfigFunc, error)
func NewDefaultMaxFeeFunc ¶
func NewDefaultMaxFeeFunc(r repo.LockedRepo) dtypes.DefaultMaxFeeFunc
func NewGetExpectedSealDurationFunc ¶
func NewGetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.GetExpectedSealDurationFunc, error)
func NewGetMaxDealStartDelayFunc ¶
func NewGetMaxDealStartDelayFunc(r repo.LockedRepo) (dtypes.GetMaxDealStartDelayFunc, error)
func NewGetSealConfigFunc ¶
func NewGetSealConfigFunc(r repo.LockedRepo) (dtypes.GetSealingConfigFunc, error)
func NewLocalDiscovery ¶
func NewLocalDiscovery(lc fx.Lifecycle, ds dtypes.MetadataDS) (*discoveryimpl.Local, error)
func NewManager ¶
func NewMinerAPI ¶
func NewMinerAPI(cfg config.DAGStoreConfig) func(fx.Lifecycle, repo.LockedRepo, dtypes.ProviderPieceStore, mdagstore.SectorAccessor) (mdagstore.MinerAPI, error)
NewMinerAPI creates a new MinerAPI adaptor for the dagstore mounts.
func NewPaychStore ¶
func NewPaychStore(ds dtypes.MetadataDS) *paychmgr.Store
func NewProviderDataTransfer ¶
func NewProviderDataTransfer(lc fx.Lifecycle, net dtypes.ProviderTransferNetwork, transport dtypes.ProviderTransport, ds dtypes.MetadataDS, r repo.LockedRepo) (dtypes.ProviderDataTransfer, error)
NewProviderDataTransfer returns a data transfer manager
func NewProviderPieceStore ¶
func NewProviderPieceStore(lc fx.Lifecycle, ds dtypes.MetadataDS) (dtypes.ProviderPieceStore, error)
NewProviderPieceStore creates a statestore for storing metadata about pieces shared by the storage and retrieval providers
func NewProviderTransferNetwork ¶
func NewProviderTransferNetwork(h host.Host) dtypes.ProviderTransferNetwork
NewProviderTransferNetwork sets up the libp2p2 protocol networking for data transfer
func NewProviderTransport ¶
func NewProviderTransport(h host.Host, gs dtypes.StagingGraphsync) dtypes.ProviderTransport
NewProviderTransport sets up a data transfer transport over graphsync
func NewRPCServer ¶
func NewSetConsiderOfflineRetrievalDealsConfigFunc ¶
func NewSetConsiderOfflineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.SetConsiderOfflineRetrievalDealsConfigFunc, error)
func NewSetConsiderOnlineRetrievalDealsConfigFunc ¶
func NewSetConsiderOnlineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.SetConsiderOnlineRetrievalDealsConfigFunc, error)
func NewSetConsideringOfflineStorageDealsFunc ¶
func NewSetConsideringOfflineStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderOfflineStorageDealsConfigFunc, error)
func NewSetConsideringOnlineStorageDealsFunc ¶
func NewSetConsideringOnlineStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderOnlineStorageDealsConfigFunc, error)
func NewSetConsideringUnverifiedStorageDealsFunc ¶
func NewSetConsideringUnverifiedStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderUnverifiedStorageDealsConfigFunc, error)
func NewSetConsideringVerifiedStorageDealsFunc ¶
func NewSetConsideringVerifiedStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderVerifiedStorageDealsConfigFunc, error)
func NewSetExpectedSealDurationFunc ¶
func NewSetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.SetExpectedSealDurationFunc, error)
func NewSetMaxDealStartDelayFunc ¶
func NewSetMaxDealStartDelayFunc(r repo.LockedRepo) (dtypes.SetMaxDealStartDelayFunc, error)
func NewSetSealConfigFunc ¶
func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error)
func NewSetStorageDealPieceCidBlocklistConfigFunc ¶
func NewSetStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.SetStorageDealPieceCidBlocklistConfigFunc, error)
func NewSlashFilter ¶
func NewSlashFilter(ds dtypes.MetadataDS) *slashfilter.SlashFilter
func NewStorageAsk ¶
func NewStorageAsk(ctx helpers.MetricsCtx, fapi v1api.FullNode, ds dtypes.MetadataDS, minerAddress dtypes.MinerAddress, spn storagemarket.StorageProviderNode) (*storedask.StoredAsk, error)
func NewStorageDealPieceCidBlocklistConfigFunc ¶
func NewStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.StorageDealPieceCidBlocklistConfigFunc, error)
func NoopGCReferenceProtector ¶
func NoopGCReferenceProtector(_ fx.Lifecycle) dtypes.GCReferenceProtector
func OpenFilesystemJournal ¶
func OpenFilesystemJournal(lr repo.LockedRepo, lc fx.Lifecycle, disabled journal.DisabledEvents) (journal.Journal, error)
func PreflightChecks ¶
func PreflightChecks(mctx helpers.MetricsCtx, lc fx.Lifecycle, api v1api.FullNode, maddr dtypes.MinerAddress) error
func RandomSchedule ¶
func RandomSchedule(lc fx.Lifecycle, mctx helpers.MetricsCtx, p RandomBeaconParams, _ dtypes.AfterGenesisSet) (beacon.Schedule, error)
func RecordValidator ¶
RecordValidator provides namesys compatible routing record validator
func RelayIndexerMessages ¶
func RelayIndexerMessages(lc fx.Lifecycle, ps *pubsub.PubSub, nn dtypes.NetworkName, h host.Host, chainModule full.ChainModuleAPI, stateModule full.StateModuleAPI) error
func RemoteStorage ¶
func RemoteStorage(lstor *paths.Local, si paths.SectorIndex, sa sealer.StorageAuth, sc config.SealerConfig) *paths.Remote
func RetrievalBlockstoreAccessor ¶
func RetrievalBlockstoreAccessor(r repo.LockedRepo) (retrievalmarket.BlockstoreAccessor, error)
RetrievalBlockstoreAccessor returns the default retrieval blockstore accessor using the subdirectory `retrievals` under the repo.
func RetrievalClient ¶
func RetrievalClient(forceOffChain bool) func(lc fx.Lifecycle, h host.Host, r repo.LockedRepo, dt dtypes.ClientDataTransfer, payAPI payapi.PaychAPI, resolver discovery.PeerResolver, ds dtypes.MetadataDS, chainAPI full.ChainAPI, stateAPI full.StateAPI, accessor *retrievaladapter.APIBlockstoreAccessor, j journal.Journal) (retrievalmarket.RetrievalClient, error)
RetrievalClient creates a new retrieval client attached to the client blockstore
func RetrievalDealFilter ¶
func RetrievalDealFilter(userFilter dtypes.RetrievalDealFilter) func(onlineOk dtypes.ConsiderOnlineRetrievalDealsConfigFunc, offlineOk dtypes.ConsiderOfflineRetrievalDealsConfigFunc) dtypes.RetrievalDealFilter
func RetrievalNetwork ¶
func RetrievalNetwork(h host.Host) rmnet.RetrievalMarketNetwork
func RetrievalPricingFunc ¶
func RetrievalPricingFunc(cfg config.DealmakingConfig) func(_ dtypes.ConsiderOnlineRetrievalDealsConfigFunc, _ dtypes.ConsiderOfflineRetrievalDealsConfigFunc) dtypes.RetrievalPricingFunc
RetrievalPricingFunc configures the pricing function to use for retrieval deals.
func RetrievalProvider ¶
func RetrievalProvider( maddr dtypes.MinerAddress, adapter retrievalmarket.RetrievalProviderNode, sa retrievalmarket.SectorAccessor, netwk rmnet.RetrievalMarketNetwork, ds dtypes.MetadataDS, pieceStore dtypes.ProviderPieceStore, dt dtypes.ProviderDataTransfer, pricingFnc dtypes.RetrievalPricingFunc, userFilter dtypes.RetrievalDealFilter, dagStore *dagstore.Wrapper, ) (retrievalmarket.RetrievalProvider, error)
RetrievalProvider creates a new retrieval provider attached to the provider blockstore
func RetrievalResolver ¶
func RetrievalResolver(l *discoveryimpl.Local) discovery.PeerResolver
func RunPeerMgr ¶
func SealProofType ¶
func SealProofType(maddr dtypes.MinerAddress, fnapi v1api.FullNode) (abi.RegisteredSealProof, error)
func SealingPipeline ¶
func SealingPipeline(fc config.MinerFeeConfig) func(params SealingPipelineParams) (*sealing.Sealing, error)
func SectorStorage ¶
func SectorStorage(mctx helpers.MetricsCtx, lc fx.Lifecycle, lstor *paths.Local, stor paths.Store, ls paths.LocalStorage, si paths.SectorIndex, sc config.SealerConfig, pc config.ProvingConfig, ds dtypes.MetadataDS) (*sealer.Manager, error)
func SetGenesis ¶
func SetGenesis(lc fx.Lifecycle, mctx helpers.MetricsCtx, cs *store.ChainStore, g Genesis) (dtypes.AfterGenesisSet, error)
func SetupBlockProducer ¶
func SetupBlockProducer(lc fx.Lifecycle, ds dtypes.MetadataDS, api v1api.FullNode, epp gen.WinningPoStProver, sf *slashfilter.SlashFilter, j journal.Journal) (*lotusminer.Miner, error)
func SplitBlockstore ¶
func SplitBlockstore(cfg *config.Chainstore) func(lc fx.Lifecycle, r repo.LockedRepo, ds dtypes.MetadataDS, cold dtypes.ColdBlockstore, hot dtypes.HotBlockstore) (dtypes.SplitBlockstore, error)
func SplitBlockstoreGCReferenceProtector ¶
func SplitBlockstoreGCReferenceProtector(_ fx.Lifecycle, s dtypes.SplitBlockstore) dtypes.GCReferenceProtector
func StagingBlockstore ¶
func StagingBlockstore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.StagingBlockstore, error)
StagingBlockstore creates a blockstore for staging blocks for a miner in a storage deal, prior to sealing
func StagingGraphsync ¶
func StagingGraphsync(parallelTransfersForStorage uint64, parallelTransfersForStoragePerPeer uint64, parallelTransfersForRetrieval uint64) func(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, h host.Host) dtypes.StagingGraphsync
StagingGraphsync creates a graphsync instance which reads and writes blocks to the StagingBlockstore
func StateFlatBlockstore ¶
func StateFlatBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.UniversalBlockstore) (dtypes.BasicStateBlockstore, error)
func StateManager ¶
func StateManager(lc fx.Lifecycle, cs *store.ChainStore, exec stmgr.Executor, sys vm.SyscallBuilder, us stmgr.UpgradeSchedule, b beacon.Schedule, metadataDs dtypes.MetadataDS) (*stmgr.StateManager, error)
func StateSplitBlockstore ¶
func StateSplitBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.SplitBlockstore) (dtypes.BasicStateBlockstore, error)
func StorageAuth ¶
func StorageAuth(ctx helpers.MetricsCtx, ca v0api.Common) (sealer.StorageAuth, error)
func StorageAuthWithURL ¶
func StorageAuthWithURL(apiInfo string) func(ctx helpers.MetricsCtx, ca v0api.Common) (sealer.StorageAuth, error)
func StorageBlockstoreAccessor ¶
func StorageBlockstoreAccessor(importmgr dtypes.ClientImportMgr) storagemarket.BlockstoreAccessor
StorageBlockstoreAccessor returns the default storage blockstore accessor from the import manager.
func StorageClient ¶
func StorageClient(lc fx.Lifecycle, h host.Host, dataTransfer dtypes.ClientDataTransfer, discovery *discoveryimpl.Local, deals dtypes.ClientDatastore, scn storagemarket.StorageClientNode, accessor storagemarket.BlockstoreAccessor, j journal.Journal) (storagemarket.StorageClient, error)
func StorageNetworkName ¶
func StorageNetworkName(ctx helpers.MetricsCtx, a v1api.FullNode) (dtypes.NetworkName, error)
func StorageProvider ¶
func StorageProvider(minerAddress dtypes.MinerAddress, storedAsk *storedask.StoredAsk, h host.Host, ds dtypes.MetadataDS, r repo.LockedRepo, pieceStore dtypes.ProviderPieceStore, indexer provider.Interface, dataTransfer dtypes.ProviderDataTransfer, spn storagemarket.StorageProviderNode, df dtypes.StorageDealFilter, dsw *dagstore.Wrapper, meshCreator idxprov.MeshCreator, ) (storagemarket.StorageProvider, error)
func ToSealingConfig ¶
func ToSealingConfig(dealmakingCfg config.DealmakingConfig, sealingCfg config.SealingConfig) sealiface.Config
func UniversalBlockstore ¶
func UniversalBlockstore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.UniversalBlockstore, error)
UniversalBlockstore returns a single universal blockstore that stores both chain data and state data. It can be backed by a blockstore directly (e.g. Badger), or by a Splitstore.
func UpgradeSchedule ¶
func UpgradeSchedule() stmgr.UpgradeSchedule
func WindowPostScheduler ¶
func WindowPostScheduler(fc config.MinerFeeConfig, pc config.ProvingConfig) func(params SealingPipelineParams) (*wdpost.WindowPoStScheduler, error)
Types ¶
type Genesis ¶
type Genesis func() (*types.BlockHeader, error)
func ErrorGenesis ¶
func ErrorGenesis() Genesis
type JwtPayload ¶
type JwtPayload struct {
Allow []auth.Permission
}
type MinerSealingService ¶
type MinerSealingService api.StorageMiner
type MinerStorageService ¶
type MinerStorageService api.StorageMiner
type MpoolNonceAPI ¶
type MpoolNonceAPI struct { fx.In ChainModule full.ChainModuleAPI StateModule full.StateModuleAPI }
MpoolNonceAPI substitutes the mpool nonce with an implementation that doesn't rely on the mpool - it just gets the nonce from actor state
type RPCHandler ¶
type RPCHandler struct {
// contains filtered or unexported fields
}
func NewRPCHandler ¶
func NewRPCHandler(mpoolAPI full.MpoolAPI, cons *consensus.Consensus) *RPCHandler
func (*RPCHandler) MpoolPushMessage ¶
func (h *RPCHandler) MpoolPushMessage(ctx context.Context, msgWhole *api.MpoolMessageWhole, ret *types.SignedMessage) error
type RandomBeaconParams ¶
type RandomBeaconParams struct { fx.In PubSub *pubsub.PubSub `optional:"true"` Cs *store.ChainStore DrandConfig dtypes.DrandSchedule }
type SealingPipelineParams ¶
type SealingPipelineParams struct { fx.In Lifecycle fx.Lifecycle MetricsCtx helpers.MetricsCtx API v1api.FullNode MetadataDS dtypes.MetadataDS Sealer sealer.SectorManager Verifier storiface.Verifier Prover storiface.Prover GetSealingConfigFn dtypes.GetSealingConfigFunc Journal journal.Journal AddrSel *ctladdr.AddressSelector Maddr dtypes.MinerAddress }
type SyncerParams ¶
type UuidWrapper ¶
func (*UuidWrapper) MpoolPushMessage ¶
func (a *UuidWrapper) MpoolPushMessage(ctx context.Context, msg *types.Message, spec *api.MessageSendSpec) (*types.SignedMessage, error)