Documentation ¶
Index ¶
- Constants
- Variables
- func APISecret(keystore types.KeyStore, lr repo.LockedRepo) (*dtypes.APIAlg, error)
- func AddressSelector(addrConf *config.MinerAddressConfig) func() (*storage.AddressSelector, error)
- func BadgerColdBlockstore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.ColdBlockstore, error)
- func BadgerHotBlockstore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.HotBlockstore, error)
- func BasicDealFilter(user dtypes.StorageDealFilter) ...
- func BuiltinBootstrap() (dtypes.BootstrapPeers, error)
- func BuiltinDrandConfig() dtypes.DrandSchedule
- func ChainBitswap(mctx helpers.MetricsCtx, lc fx.Lifecycle, 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, cbs dtypes.ChainBlockstore, sbs dtypes.StateBlockstore, ...) *store.ChainStore
- func ClientBlockstore(imgr dtypes.ClientImportMgr) dtypes.ClientBlockstore
- func ClientBlockstoreRetrievalStoreManager(bs dtypes.ClientBlockstore) dtypes.ClientRetrievalStoreManager
- func ClientImportMgr(mds dtypes.ClientMultiDstore, ds dtypes.MetadataDS) dtypes.ClientImportMgr
- func ClientMultiDatastore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.ClientMultiDstore, error)
- func ClientRetrievalStoreManager(imgr dtypes.ClientImportMgr) dtypes.ClientRetrievalStoreManager
- func ConfigBootstrap(peers []string) func() (dtypes.BootstrapPeers, error)
- func Datastore(disableLog bool) ...
- func DoSetGenesis(_ dtypes.AfterGenesisSet)
- func DrandBootstrap(ds dtypes.DrandSchedule) (dtypes.DrandBootstrap, error)
- func FallbackChainBlockstore(cbs dtypes.ChainBlockstore) dtypes.ChainBlockstore
- func FallbackStateBlockstore(sbs dtypes.StateBlockstore) dtypes.StateBlockstore
- func GetParams(spt abi.RegisteredSealProof) error
- func Graphsync(parallelTransfers 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 HandleRetrieval(host host.Host, lc fx.Lifecycle, m retrievalmarket.RetrievalProvider, ...)
- func InitFallbackBlockstores(cbs dtypes.ChainBlockstore, sbs dtypes.StateBlockstore, ...) error
- func IpfsClientBlockstore(ipfsMaddr string, onlineMode bool) ...
- func KeyStore(lr repo.LockedRepo) (types.KeyStore, error)
- func LoadGenesis(genBytes []byte) func(dtypes.ChainBlockstore) Genesis
- func LockedRepo(lr repo.LockedRepo) func(lc fx.Lifecycle) repo.LockedRepo
- func MemoryConstraints() system.MemoryConstraints
- func MemoryWatchdog(lr repo.LockedRepo, lc fx.Lifecycle, constraints system.MemoryConstraints)
- func MessagePool(lc fx.Lifecycle, sm *stmgr.StateManager, ps *pubsub.PubSub, ...) (*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 NewDefaultMaxFeeFunc(r repo.LockedRepo) dtypes.DefaultMaxFeeFunc
- func NewGetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.GetExpectedSealDurationFunc, error)
- func NewGetSealConfigFunc(r repo.LockedRepo) (dtypes.GetSealingConfigFunc, error)
- func NewLocalDiscovery(lc fx.Lifecycle, ds dtypes.MetadataDS) (*discoveryimpl.Local, error)
- func NewProviderDAGServiceDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.StagingGraphsync, ds dtypes.MetadataDS, ...) (dtypes.ProviderDataTransfer, error)
- func NewProviderPieceStore(lc fx.Lifecycle, ds dtypes.MetadataDS) (dtypes.ProviderPieceStore, 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 NewSetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.SetExpectedSealDurationFunc, 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 lapi.FullNode, ds dtypes.MetadataDS, ...) (*storedask.StoredAsk, error)
- func NewStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.StorageDealPieceCidBlocklistConfigFunc, error)
- func NewSyncer(params SyncerParams) (*chain.Syncer, error)
- func OpenFilesystemJournal(lr repo.LockedRepo, lc fx.Lifecycle, disabled journal.DisabledEvents) (journal.Journal, error)
- func RandomSchedule(p RandomBeaconParams, _ dtypes.AfterGenesisSet) (beacon.Schedule, error)
- func RecordValidator(ps peerstore.Peerstore) record.Validator
- func RegisterClientValidator(crv dtypes.ClientRequestValidator, dtm dtypes.ClientDataTransfer)
- func RetrievalClient(lc fx.Lifecycle, h host.Host, mds dtypes.ClientMultiDstore, ...) (retrievalmarket.RetrievalClient, error)
- func RetrievalDealFilter(userFilter dtypes.RetrievalDealFilter) ...
- func RetrievalProvider(h host.Host, miner *storage.Miner, sealer sectorstorage.SectorManager, ...) (retrievalmarket.RetrievalProvider, error)
- func RetrievalResolver(l *discoveryimpl.Local) discovery.PeerResolver
- func RunChainExchange(h host.Host, svc exchange.Server)
- func RunChainSysMetrics(mctx helpers.MetricsCtx, lc fx.Lifecycle, reporter metrics2.Reporter)
- func RunHello(mctx helpers.MetricsCtx, lc fx.Lifecycle, h host.Host, svc *hello.Service) error
- func RunMinerMetrics(mctx helpers.MetricsCtx, lc fx.Lifecycle, node api.FullNode, st *storage.Miner, ...)
- func RunMinerSysMetrics(mctx helpers.MetricsCtx, lc fx.Lifecycle, reporter metrics2.Reporter)
- func RunPeerMgr(mctx helpers.MetricsCtx, lc fx.Lifecycle, pmgr *peermgr.PeerMgr)
- func SealProofType(maddr dtypes.MinerAddress, fnapi lapi.FullNode) (abi.RegisteredSealProof, error)
- func SectorIDCounter(ds dtypes.MetadataDS) sealing.SectorIDCounter
- func SectorStorage(mctx helpers.MetricsCtx, lc fx.Lifecycle, ls stores.LocalStorage, ...) (*sectorstorage.Manager, error)
- func SetGenesis(cs *store.ChainStore, g Genesis) (dtypes.AfterGenesisSet, error)
- func SetupBlockProducer(lc fx.Lifecycle, ds dtypes.MetadataDS, api lapi.FullNode, ...) (*lotusminer.Miner, error)
- func SplitBlockstore(cfg *config.Chainstore) ...
- func StagingBlockstore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.StagingBlockstore, error)
- func StagingDAG(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, ...) (dtypes.StagingDAG, error)
- func StagingGraphsync(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, ...) dtypes.StagingGraphsync
- func StagingMultiDatastore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.StagingMultiDstore, error)
- func StateFlatBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.UniversalBlockstore) (dtypes.StateBlockstore, error)
- func StateManager(lc fx.Lifecycle, cs *store.ChainStore, us stmgr.UpgradeSchedule) (*stmgr.StateManager, error)
- func StateSplitBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.SplitBlockstore) (dtypes.StateBlockstore, error)
- func StorageAuth(ctx helpers.MetricsCtx, ca lapi.Common) (sectorstorage.StorageAuth, error)
- func StorageClient(lc fx.Lifecycle, h host.Host, ibs dtypes.ClientBlockstore, ...) (storagemarket.StorageClient, error)
- func StorageMiner(fc config.MinerFeeConfig) func(params StorageMinerParams) (*storage.Miner, error)
- func StorageNetworkName(ctx helpers.MetricsCtx, a lapi.FullNode) (dtypes.NetworkName, error)
- func StorageProvider(minerAddress dtypes.MinerAddress, storedAsk *storedask.StoredAsk, h host.Host, ...) (storagemarket.StorageProvider, error)
- func UniversalBlockstore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.UniversalBlockstore, error)
- type Genesis
- type JwtPayload
- type MpoolNonceAPI
- type RPCStateManager
- func (s *RPCStateManager) Call(ctx context.Context, msg *types.Message, ts *types.TipSet) (*api.InvocResult, error)
- func (s *RPCStateManager) GetFlowchState(ctx context.Context, addr address.Address, ts *types.TipSet) (*types.Actor, flowch.State, error)
- func (s *RPCStateManager) GetPaychState(ctx context.Context, addr address.Address, ts *types.TipSet) (*types.Actor, paych.State, error)
- func (s *RPCStateManager) LoadActorTsk(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*types.Actor, error)
- func (s *RPCStateManager) LookupID(ctx context.Context, addr address.Address, ts *types.TipSet) (address.Address, error)
- func (s *RPCStateManager) ResolveToKeyAddress(ctx context.Context, addr address.Address, ts *types.TipSet) (address.Address, error)
- type RandomBeaconParams
- type StorageMinerParams
- type SyncerParams
Constants ¶
const ( JWTSecretName = "auth-jwt-private" //nolint:gosec KTJwtHmacSecret = "jwt-hmac-secret" //nolint:gosec )
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 = "EPIK_DISABLE_WATCHDOG" )
Variables ¶
var ManagerWorkPrefix = datastore.NewKey("/stmgr/calls")
var StorageCounterDSPrefix = "/storage/nextid"
var WorkerCallsPrefix = datastore.NewKey("/worker/calls")
Functions ¶
func AddressSelector ¶
func AddressSelector(addrConf *config.MinerAddressConfig) func() (*storage.AddressSelector, error)
func BadgerColdBlockstore ¶
func BadgerColdBlockstore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.ColdBlockstore, error)
func BadgerHotBlockstore ¶
func BadgerHotBlockstore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.HotBlockstore, error)
func BasicDealFilter ¶
func BasicDealFilter(user dtypes.StorageDealFilter) func(onlineOk dtypes.ConsiderOnlineStorageDealsConfigFunc, offlineOk dtypes.ConsiderOfflineStorageDealsConfigFunc, blocklistFunc dtypes.StorageDealPieceCidBlocklistConfigFunc, expectedSealTimeFunc dtypes.GetExpectedSealDurationFunc, spn storagemarket.StorageProviderNode) dtypes.StorageDealFilter
func BuiltinBootstrap ¶
func BuiltinBootstrap() (dtypes.BootstrapPeers, error)
func BuiltinDrandConfig ¶
func BuiltinDrandConfig() dtypes.DrandSchedule
func ChainBitswap ¶
func ChainBitswap(mctx helpers.MetricsCtx, lc fx.Lifecycle, 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, cbs dtypes.ChainBlockstore, sbs dtypes.StateBlockstore, ds dtypes.MetadataDS, basebs dtypes.BaseBlockstore, syscalls vm.SyscallBuilder, j journal.Journal) *store.ChainStore
func ClientBlockstore ¶
func ClientBlockstore(imgr dtypes.ClientImportMgr) dtypes.ClientBlockstore
func ClientBlockstoreRetrievalStoreManager ¶
func ClientBlockstoreRetrievalStoreManager(bs dtypes.ClientBlockstore) dtypes.ClientRetrievalStoreManager
ClientBlockstoreRetrievalStoreManager is the default version of the RetrievalStoreManager that runs on multistore
func ClientImportMgr ¶
func ClientImportMgr(mds dtypes.ClientMultiDstore, ds dtypes.MetadataDS) dtypes.ClientImportMgr
func ClientMultiDatastore ¶
func ClientMultiDatastore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.ClientMultiDstore, error)
func ClientRetrievalStoreManager ¶
func ClientRetrievalStoreManager(imgr dtypes.ClientImportMgr) dtypes.ClientRetrievalStoreManager
ClientRetrievalStoreManager is the default version of the RetrievalStoreManager that runs on multistore
func ConfigBootstrap ¶
func ConfigBootstrap(peers []string) func() (dtypes.BootstrapPeers, error)
func Datastore ¶
func Datastore(disableLog bool) func(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.MetadataDS, error)
func DoSetGenesis ¶
func DoSetGenesis(_ dtypes.AfterGenesisSet)
func DrandBootstrap ¶
func DrandBootstrap(ds dtypes.DrandSchedule) (dtypes.DrandBootstrap, error)
func FallbackChainBlockstore ¶
func FallbackChainBlockstore(cbs dtypes.ChainBlockstore) dtypes.ChainBlockstore
func FallbackStateBlockstore ¶
func FallbackStateBlockstore(sbs dtypes.StateBlockstore) dtypes.StateBlockstore
func GetParams ¶
func GetParams(spt abi.RegisteredSealProof) error
func Graphsync ¶
func Graphsync(parallelTransfers 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, stmgr *stmgr.StateManager, 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 HandleRetrieval ¶
func HandleRetrieval(host host.Host, lc fx.Lifecycle, m retrievalmarket.RetrievalProvider, j journal.Journal)
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 LoadGenesis ¶
func LoadGenesis(genBytes []byte) func(dtypes.ChainBlockstore) Genesis
func LockedRepo ¶
func LockedRepo(lr repo.LockedRepo) func(lc fx.Lifecycle) repo.LockedRepo
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, sm *stmgr.StateManager, ps *pubsub.PubSub, ds dtypes.MetadataDS, nn dtypes.NetworkName, j journal.Journal) (*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, 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 NewDefaultMaxFeeFunc ¶
func NewDefaultMaxFeeFunc(r repo.LockedRepo) dtypes.DefaultMaxFeeFunc
func NewGetExpectedSealDurationFunc ¶
func NewGetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.GetExpectedSealDurationFunc, 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 NewProviderDAGServiceDataTransfer ¶
func NewProviderDAGServiceDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.StagingGraphsync, ds dtypes.MetadataDS, r repo.LockedRepo) (dtypes.ProviderDataTransfer, error)
NewProviderDAGServiceDataTransfer returns a data transfer manager that just uses the provider's Staging DAG service for transfers
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 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 NewSetExpectedSealDurationFunc ¶
func NewSetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.SetExpectedSealDurationFunc, 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 lapi.FullNode, ds dtypes.MetadataDS, minerAddress dtypes.MinerAddress, spn storagemarket.StorageProviderNode) (*storedask.StoredAsk, error)
func NewStorageDealPieceCidBlocklistConfigFunc ¶
func NewStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.StorageDealPieceCidBlocklistConfigFunc, error)
func OpenFilesystemJournal ¶
func OpenFilesystemJournal(lr repo.LockedRepo, lc fx.Lifecycle, disabled journal.DisabledEvents) (journal.Journal, error)
func RandomSchedule ¶
func RandomSchedule(p RandomBeaconParams, _ dtypes.AfterGenesisSet) (beacon.Schedule, error)
func RecordValidator ¶
RecordValidator provides namesys compatible routing record validator
func RegisterClientValidator ¶
func RegisterClientValidator(crv dtypes.ClientRequestValidator, dtm dtypes.ClientDataTransfer)
RegisterClientValidator is an initialization hook that registers the client request validator with the data transfer module as the validator for StorageDataTransferVoucher types
func RetrievalClient ¶
func RetrievalClient(lc fx.Lifecycle, h host.Host, mds dtypes.ClientMultiDstore, dt dtypes.ClientDataTransfer, flowAPI flowapi.FlowchAPI, resolver discovery.PeerResolver, ds dtypes.MetadataDS, chainAPI full.ChainAPI, stateAPI full.StateAPI, mpoolAPI full.MpoolAPI, 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 RetrievalProvider ¶
func RetrievalProvider(h host.Host, miner *storage.Miner, sealer sectorstorage.SectorManager, full lapi.FullNode, ds dtypes.MetadataDS, pieceStore dtypes.ProviderPieceStore, mds dtypes.StagingMultiDstore, dt dtypes.ProviderDataTransfer, onlineOk dtypes.ConsiderOnlineRetrievalDealsConfigFunc, offlineOk dtypes.ConsiderOfflineRetrievalDealsConfigFunc, userFilter dtypes.RetrievalDealFilter, ) (retrievalmarket.RetrievalProvider, error)
RetrievalProvider creates a new retrieval provider attached to the provider blockstore
func RetrievalResolver ¶
func RetrievalResolver(l *discoveryimpl.Local) discovery.PeerResolver
func RunChainSysMetrics ¶
func RunMinerMetrics ¶
func RunMinerSysMetrics ¶
func RunPeerMgr ¶
func SealProofType ¶
func SealProofType(maddr dtypes.MinerAddress, fnapi lapi.FullNode) (abi.RegisteredSealProof, error)
func SectorIDCounter ¶
func SectorIDCounter(ds dtypes.MetadataDS) sealing.SectorIDCounter
func SectorStorage ¶
func SectorStorage(mctx helpers.MetricsCtx, lc fx.Lifecycle, ls stores.LocalStorage, si stores.SectorIndex, sc sectorstorage.SealerConfig, urls sectorstorage.URLs, sa sectorstorage.StorageAuth, ds dtypes.MetadataDS) (*sectorstorage.Manager, error)
func SetGenesis ¶
func SetGenesis(cs *store.ChainStore, g Genesis) (dtypes.AfterGenesisSet, error)
func SetupBlockProducer ¶
func SetupBlockProducer(lc fx.Lifecycle, ds dtypes.MetadataDS, api lapi.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, us dtypes.UniversalBlockstore, ds dtypes.MetadataDS, cold dtypes.ColdBlockstore, hot dtypes.HotBlockstore) (dtypes.SplitBlockstore, error)
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 StagingDAG ¶
func StagingDAG(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, rt routing.Routing, h host.Host) (dtypes.StagingDAG, error)
StagingDAG is a DAGService for the StagingBlockstore
func StagingGraphsync ¶
func StagingGraphsync(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 StagingMultiDatastore ¶
func StagingMultiDatastore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.StagingMultiDstore, error)
func StateFlatBlockstore ¶
func StateFlatBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.UniversalBlockstore) (dtypes.StateBlockstore, error)
func StateManager ¶
func StateManager(lc fx.Lifecycle, cs *store.ChainStore, us stmgr.UpgradeSchedule) (*stmgr.StateManager, error)
func StateSplitBlockstore ¶
func StateSplitBlockstore(_ fx.Lifecycle, _ helpers.MetricsCtx, bs dtypes.SplitBlockstore) (dtypes.StateBlockstore, error)
func StorageAuth ¶
func StorageAuth(ctx helpers.MetricsCtx, ca lapi.Common) (sectorstorage.StorageAuth, error)
func StorageClient ¶
func StorageClient(lc fx.Lifecycle, h host.Host, ibs dtypes.ClientBlockstore, mds dtypes.ClientMultiDstore, r repo.LockedRepo, dataTransfer dtypes.ClientDataTransfer, discovery *discoveryimpl.Local, deals dtypes.ClientDatastore, scn storagemarket.StorageClientNode, j journal.Journal) (storagemarket.StorageClient, error)
func StorageMiner ¶
func StorageMiner(fc config.MinerFeeConfig) func(params StorageMinerParams) (*storage.Miner, error)
func StorageNetworkName ¶
func StorageNetworkName(ctx helpers.MetricsCtx, a lapi.FullNode) (dtypes.NetworkName, error)
func StorageProvider ¶
func StorageProvider(minerAddress dtypes.MinerAddress, storedAsk *storedask.StoredAsk, h host.Host, ds dtypes.MetadataDS, mds dtypes.StagingMultiDstore, r repo.LockedRepo, pieceStore dtypes.ProviderPieceStore, dataTransfer dtypes.ProviderDataTransfer, spn storagemarket.StorageProviderNode, df dtypes.StorageDealFilter, ) (storagemarket.StorageProvider, error)
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.
Types ¶
type Genesis ¶
type Genesis func() (*types.BlockHeader, error)
func ErrorGenesis ¶
func ErrorGenesis() Genesis
type JwtPayload ¶
type JwtPayload struct {
Allow []auth.Permission
}
type MpoolNonceAPI ¶
MpoolNonceAPI substitutes the mpool nonce with an implementation that doesn't rely on the mpool - it just gets the nonce from actor state
func (*MpoolNonceAPI) GetNonce ¶
func (a *MpoolNonceAPI) GetNonce(addr address.Address) (uint64, error)
GetNonce gets the nonce from current chain head.
type RPCStateManager ¶
type RPCStateManager struct {
// contains filtered or unexported fields
}
func NewRPCStateManager ¶
func NewRPCStateManager(api api.GatewayAPI) *RPCStateManager
func (*RPCStateManager) Call ¶
func (s *RPCStateManager) Call(ctx context.Context, msg *types.Message, ts *types.TipSet) (*api.InvocResult, error)
func (*RPCStateManager) GetFlowchState ¶
func (*RPCStateManager) GetPaychState ¶
func (*RPCStateManager) LoadActorTsk ¶
func (*RPCStateManager) ResolveToKeyAddress ¶
type RandomBeaconParams ¶
type RandomBeaconParams struct { fx.In PubSub *pubsub.PubSub `optional:"true"` Cs *store.ChainStore DrandConfig dtypes.DrandSchedule }
type StorageMinerParams ¶
type StorageMinerParams struct { fx.In Lifecycle fx.Lifecycle MetricsCtx helpers.MetricsCtx API lapi.FullNode Host host.Host MetadataDS dtypes.MetadataDS Sealer sectorstorage.SectorManager SectorIDCounter sealing.SectorIDCounter Verifier ffiwrapper.Verifier GetSealingConfigFn dtypes.GetSealingConfigFunc Journal journal.Journal AddrSel *storage.AddressSelector }
type SyncerParams ¶
type SyncerParams struct { fx.In Lifecycle fx.Lifecycle MetadataDS dtypes.MetadataDS StateManager *stmgr.StateManager ChainXchg exchange.Client SyncMgrCtor chain.SyncManagerCtor Host host.Host Beacon beacon.Schedule Verifier ffiwrapper.Verifier }