config: Bring some docs from filecoin-docs
This commit is contained in:
parent
ed7f70e68e
commit
a26712ebc4
@ -34,7 +34,8 @@ var Doc = map[string][]DocField{
|
|||||||
Name: "DisableMetadataLog",
|
Name: "DisableMetadataLog",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Note that in case of metadata corruption it might be much harder to recover
|
||||||
|
your node if metadata log is disabled`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"BatchFeeConfig": []DocField{
|
"BatchFeeConfig": []DocField{
|
||||||
@ -94,7 +95,8 @@ var Doc = map[string][]DocField{
|
|||||||
Name: "SimultaneousTransfers",
|
Name: "SimultaneousTransfers",
|
||||||
Type: "uint64",
|
Type: "uint64",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `The maximum number of simultaneous data transfers between the client
|
||||||
|
and storage providers`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"Common": []DocField{
|
"Common": []DocField{
|
||||||
@ -128,49 +130,51 @@ var Doc = map[string][]DocField{
|
|||||||
Name: "ConsiderOnlineStorageDeals",
|
Name: "ConsiderOnlineStorageDeals",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `When enabled, the miner can accept online deals`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "ConsiderOfflineStorageDeals",
|
Name: "ConsiderOfflineStorageDeals",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `When enabled, the miner can accept offline deals`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "ConsiderOnlineRetrievalDeals",
|
Name: "ConsiderOnlineRetrievalDeals",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `When enabled, the miner can accept retrieval deals`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "ConsiderOfflineRetrievalDeals",
|
Name: "ConsiderOfflineRetrievalDeals",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `When enabled, the miner can accept offline retrieval deals`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "ConsiderVerifiedStorageDeals",
|
Name: "ConsiderVerifiedStorageDeals",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `When enabled, the miner can accept verified deals`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "ConsiderUnverifiedStorageDeals",
|
Name: "ConsiderUnverifiedStorageDeals",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `When enabled, the miner can accept unverified deals`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "PieceCidBlocklist",
|
Name: "PieceCidBlocklist",
|
||||||
Type: "[]cid.Cid",
|
Type: "[]cid.Cid",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `A list of Data CIDs to reject when making deals`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "ExpectedSealDuration",
|
Name: "ExpectedSealDuration",
|
||||||
Type: "Duration",
|
Type: "Duration",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Maximum expected amount of time getting the deal into a sealed sector will take
|
||||||
|
This includes the time the deal will need to get transferred and published
|
||||||
|
before being assigned to a sector`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "MaxDealStartDelay",
|
Name: "MaxDealStartDelay",
|
||||||
@ -182,8 +186,8 @@ var Doc = map[string][]DocField{
|
|||||||
Name: "PublishMsgPeriod",
|
Name: "PublishMsgPeriod",
|
||||||
Type: "Duration",
|
Type: "Duration",
|
||||||
|
|
||||||
Comment: `The amount of time to wait for more deals to arrive before
|
Comment: `When a deal is ready to publish, the amount of time to wait for more
|
||||||
publishing`,
|
deals to be ready to publish before publishing them all as a batch`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "MaxDealsPerPublishMsg",
|
Name: "MaxDealsPerPublishMsg",
|
||||||
@ -209,13 +213,15 @@ as a multiplier of the minimum collateral bound`,
|
|||||||
Name: "Filter",
|
Name: "Filter",
|
||||||
Type: "string",
|
Type: "string",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `A command used for fine-grained evaluation of storage deals
|
||||||
|
see https://docs.filecoin.io/mine/lotus/miner-configuration/#using-filters-for-fine-grained-storage-and-retrieval-deal-acceptance for more details`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "RetrievalFilter",
|
Name: "RetrievalFilter",
|
||||||
Type: "string",
|
Type: "string",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `A command used for fine-grained evaluation of retrieval deals
|
||||||
|
see https://docs.filecoin.io/mine/lotus/miner-configuration/#using-filters-for-fine-grained-storage-and-retrieval-deal-acceptance for more details`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "RetrievalPricing",
|
Name: "RetrievalPricing",
|
||||||
@ -269,19 +275,23 @@ as a multiplier of the minimum collateral bound`,
|
|||||||
Name: "ListenAddresses",
|
Name: "ListenAddresses",
|
||||||
Type: "[]string",
|
Type: "[]string",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Binding address for the libp2p host - 0 means random port.
|
||||||
|
Format: multiaddress; see https://multiformats.io/multiaddr/`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "AnnounceAddresses",
|
Name: "AnnounceAddresses",
|
||||||
Type: "[]string",
|
Type: "[]string",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Addresses to explicitally announce to other peers. If not specified,
|
||||||
|
all interface addresses are announced
|
||||||
|
Format: multiaddress`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "NoAnnounceAddresses",
|
Name: "NoAnnounceAddresses",
|
||||||
Type: "[]string",
|
Type: "[]string",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Addresses to not announce
|
||||||
|
Format: multiaddress`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "BootstrapPeers",
|
Name: "BootstrapPeers",
|
||||||
@ -333,13 +343,13 @@ as a multiplier of the minimum collateral bound`,
|
|||||||
Name: "PreCommitControl",
|
Name: "PreCommitControl",
|
||||||
Type: "[]string",
|
Type: "[]string",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Addresses to send PreCommit messages from`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "CommitControl",
|
Name: "CommitControl",
|
||||||
Type: "[]string",
|
Type: "[]string",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Addresses to send Commit messages from`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "TerminateControl",
|
Name: "TerminateControl",
|
||||||
@ -405,7 +415,7 @@ over the worker address if this flag is set.`,
|
|||||||
Name: "MaxWindowPoStGasFee",
|
Name: "MaxWindowPoStGasFee",
|
||||||
Type: "types.FIL",
|
Type: "types.FIL",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `WindowPoSt is a high-value operation, so the default fee should be high.`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "MaxPublishDealsFee",
|
Name: "MaxPublishDealsFee",
|
||||||
@ -463,13 +473,18 @@ over the worker address if this flag is set.`,
|
|||||||
Name: "Bootstrapper",
|
Name: "Bootstrapper",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Run the node in bootstrap-node mode`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "DirectPeers",
|
Name: "DirectPeers",
|
||||||
Type: "[]string",
|
Type: "[]string",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `DirectPeers specifies peers with direct peering agreements. These peers are
|
||||||
|
connected outside of the mesh, with all (valid) message unconditionally
|
||||||
|
forwarded to them. The router will maintain open connections to these peers.
|
||||||
|
Note that the peering agreement should be reciprocal with direct peers
|
||||||
|
symmetrically configured at both ends.
|
||||||
|
Type: Array of multiaddress peerinfo strings, must include peerid (/p2p/12D3K...`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "IPColocationWhitelist",
|
Name: "IPColocationWhitelist",
|
||||||
@ -529,31 +544,37 @@ This parameter is ONLY applicable if the retrieval pricing policy strategy has b
|
|||||||
Name: "MaxWaitDealsSectors",
|
Name: "MaxWaitDealsSectors",
|
||||||
Type: "uint64",
|
Type: "uint64",
|
||||||
|
|
||||||
Comment: `0 = no limit`,
|
Comment: `Upper bound on how many sectors can be waiting for more deals to be packed in it before it begins sealing at any given time.
|
||||||
|
If the miner is accepting multiple deals in parallel, up to MaxWaitDealsSectors of new sectors will be created.
|
||||||
|
If more than MaxWaitDealsSectors deals are accepted in parallel, only MaxWaitDealsSectors deals will be processed in parallel
|
||||||
|
Note that setting this number too high in relation to deal ingestion rate may result in poor sector packing efficiency
|
||||||
|
0 = no limit`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "MaxSealingSectors",
|
Name: "MaxSealingSectors",
|
||||||
Type: "uint64",
|
Type: "uint64",
|
||||||
|
|
||||||
Comment: `includes failed, 0 = no limit`,
|
Comment: `Upper bound on how many sectors can be sealing at the same time when creating new CC sectors (0 = unlimited)`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "MaxSealingSectorsForDeals",
|
Name: "MaxSealingSectorsForDeals",
|
||||||
Type: "uint64",
|
Type: "uint64",
|
||||||
|
|
||||||
Comment: `includes failed, 0 = no limit`,
|
Comment: `Upper bound on how many sectors can be sealing at the same time when creating new sectors with deals (0 = unlimited)`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "WaitDealsDelay",
|
Name: "WaitDealsDelay",
|
||||||
Type: "Duration",
|
Type: "Duration",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Period of time that a newly created sector will wait for more deals to be packed in to before it starts to seal.
|
||||||
|
Sectors which are fully filled will start sealing immediately`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "AlwaysKeepUnsealedCopy",
|
Name: "AlwaysKeepUnsealedCopy",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: ``,
|
Comment: `Whether to keep unsealed copies of deal data regardless of whether the client requested that. This lets the miner
|
||||||
|
avoid the relatively high cost of unsealing the data later, at the cost of more storage space`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "FinalizeEarly",
|
Name: "FinalizeEarly",
|
||||||
|
@ -30,6 +30,11 @@ type FullNode struct {
|
|||||||
// // Common
|
// // Common
|
||||||
|
|
||||||
type Backup struct {
|
type Backup struct {
|
||||||
|
// When set to true disables metadata log (.lotus/kvlog). This can save disk
|
||||||
|
// space by reducing metadata redundancy.
|
||||||
|
//
|
||||||
|
// Note that in case of metadata corruption it might be much harder to recover
|
||||||
|
// your node if metadata log is disabled
|
||||||
DisableMetadataLog bool
|
DisableMetadataLog bool
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,18 +61,28 @@ type MinerSubsystemConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DealmakingConfig struct {
|
type DealmakingConfig struct {
|
||||||
ConsiderOnlineStorageDeals bool
|
// When enabled, the miner can accept online deals
|
||||||
ConsiderOfflineStorageDeals bool
|
ConsiderOnlineStorageDeals bool
|
||||||
ConsiderOnlineRetrievalDeals bool
|
// When enabled, the miner can accept offline deals
|
||||||
ConsiderOfflineRetrievalDeals bool
|
ConsiderOfflineStorageDeals bool
|
||||||
ConsiderVerifiedStorageDeals bool
|
// When enabled, the miner can accept retrieval deals
|
||||||
|
ConsiderOnlineRetrievalDeals bool
|
||||||
|
// When enabled, the miner can accept offline retrieval deals
|
||||||
|
ConsiderOfflineRetrievalDeals bool
|
||||||
|
// When enabled, the miner can accept verified deals
|
||||||
|
ConsiderVerifiedStorageDeals bool
|
||||||
|
// When enabled, the miner can accept unverified deals
|
||||||
ConsiderUnverifiedStorageDeals bool
|
ConsiderUnverifiedStorageDeals bool
|
||||||
PieceCidBlocklist []cid.Cid
|
// A list of Data CIDs to reject when making deals
|
||||||
ExpectedSealDuration Duration
|
PieceCidBlocklist []cid.Cid
|
||||||
|
// Maximum expected amount of time getting the deal into a sealed sector will take
|
||||||
|
// This includes the time the deal will need to get transferred and published
|
||||||
|
// before being assigned to a sector
|
||||||
|
ExpectedSealDuration Duration
|
||||||
// Maximum amount of time proposed deal StartEpoch can be in future
|
// Maximum amount of time proposed deal StartEpoch can be in future
|
||||||
MaxDealStartDelay Duration
|
MaxDealStartDelay Duration
|
||||||
// The amount of time to wait for more deals to arrive before
|
// When a deal is ready to publish, the amount of time to wait for more
|
||||||
// publishing
|
// deals to be ready to publish before publishing them all as a batch
|
||||||
PublishMsgPeriod Duration
|
PublishMsgPeriod Duration
|
||||||
// The maximum number of deals to include in a single PublishStorageDeals
|
// The maximum number of deals to include in a single PublishStorageDeals
|
||||||
// message
|
// message
|
||||||
@ -79,7 +94,11 @@ type DealmakingConfig struct {
|
|||||||
// The maximum number of parallel online data transfers (storage+retrieval)
|
// The maximum number of parallel online data transfers (storage+retrieval)
|
||||||
SimultaneousTransfers uint64
|
SimultaneousTransfers uint64
|
||||||
|
|
||||||
Filter string
|
// A command used for fine-grained evaluation of storage deals
|
||||||
|
// see https://docs.filecoin.io/mine/lotus/miner-configuration/#using-filters-for-fine-grained-storage-and-retrieval-deal-acceptance for more details
|
||||||
|
Filter string
|
||||||
|
// A command used for fine-grained evaluation of retrieval deals
|
||||||
|
// see https://docs.filecoin.io/mine/lotus/miner-configuration/#using-filters-for-fine-grained-storage-and-retrieval-deal-acceptance for more details
|
||||||
RetrievalFilter string
|
RetrievalFilter string
|
||||||
|
|
||||||
RetrievalPricing *RetrievalPricing
|
RetrievalPricing *RetrievalPricing
|
||||||
@ -107,17 +126,25 @@ type RetrievalPricingDefault struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SealingConfig struct {
|
type SealingConfig struct {
|
||||||
|
// Upper bound on how many sectors can be waiting for more deals to be packed in it before it begins sealing at any given time.
|
||||||
|
// If the miner is accepting multiple deals in parallel, up to MaxWaitDealsSectors of new sectors will be created.
|
||||||
|
// If more than MaxWaitDealsSectors deals are accepted in parallel, only MaxWaitDealsSectors deals will be processed in parallel
|
||||||
|
// Note that setting this number too high in relation to deal ingestion rate may result in poor sector packing efficiency
|
||||||
// 0 = no limit
|
// 0 = no limit
|
||||||
MaxWaitDealsSectors uint64
|
MaxWaitDealsSectors uint64
|
||||||
|
|
||||||
// includes failed, 0 = no limit
|
// Upper bound on how many sectors can be sealing at the same time when creating new CC sectors (0 = unlimited)
|
||||||
MaxSealingSectors uint64
|
MaxSealingSectors uint64
|
||||||
|
|
||||||
// includes failed, 0 = no limit
|
// Upper bound on how many sectors can be sealing at the same time when creating new sectors with deals (0 = unlimited)
|
||||||
MaxSealingSectorsForDeals uint64
|
MaxSealingSectorsForDeals uint64
|
||||||
|
|
||||||
|
// Period of time that a newly created sector will wait for more deals to be packed in to before it starts to seal.
|
||||||
|
// Sectors which are fully filled will start sealing immediately
|
||||||
WaitDealsDelay Duration
|
WaitDealsDelay Duration
|
||||||
|
|
||||||
|
// Whether to keep unsealed copies of deal data regardless of whether the client requested that. This lets the miner
|
||||||
|
// avoid the relatively high cost of unsealing the data later, at the cost of more storage space
|
||||||
AlwaysKeepUnsealedCopy bool
|
AlwaysKeepUnsealedCopy bool
|
||||||
|
|
||||||
// Run sector finalization before submitting sector proof to the chain
|
// Run sector finalization before submitting sector proof to the chain
|
||||||
@ -176,14 +203,17 @@ type MinerFeeConfig struct {
|
|||||||
MaxPreCommitBatchGasFee BatchFeeConfig
|
MaxPreCommitBatchGasFee BatchFeeConfig
|
||||||
MaxCommitBatchGasFee BatchFeeConfig
|
MaxCommitBatchGasFee BatchFeeConfig
|
||||||
|
|
||||||
MaxTerminateGasFee types.FIL
|
MaxTerminateGasFee types.FIL
|
||||||
|
// WindowPoSt is a high-value operation, so the default fee should be high.
|
||||||
MaxWindowPoStGasFee types.FIL
|
MaxWindowPoStGasFee types.FIL
|
||||||
MaxPublishDealsFee types.FIL
|
MaxPublishDealsFee types.FIL
|
||||||
MaxMarketBalanceAddFee types.FIL
|
MaxMarketBalanceAddFee types.FIL
|
||||||
}
|
}
|
||||||
|
|
||||||
type MinerAddressConfig struct {
|
type MinerAddressConfig struct {
|
||||||
PreCommitControl []string
|
// Addresses to send PreCommit messages from
|
||||||
|
PreCommitControl []string
|
||||||
|
// Addresses to send Commit messages from
|
||||||
CommitControl []string
|
CommitControl []string
|
||||||
TerminateControl []string
|
TerminateControl []string
|
||||||
DealPublishControl []string
|
DealPublishControl []string
|
||||||
@ -208,8 +238,15 @@ type API struct {
|
|||||||
|
|
||||||
// Libp2p contains configs for libp2p
|
// Libp2p contains configs for libp2p
|
||||||
type Libp2p struct {
|
type Libp2p struct {
|
||||||
ListenAddresses []string
|
// Binding address for the libp2p host - 0 means random port.
|
||||||
AnnounceAddresses []string
|
// Format: multiaddress; see https://multiformats.io/multiaddr/
|
||||||
|
ListenAddresses []string
|
||||||
|
// Addresses to explicitally announce to other peers. If not specified,
|
||||||
|
// all interface addresses are announced
|
||||||
|
// Format: multiaddress
|
||||||
|
AnnounceAddresses []string
|
||||||
|
// Addresses to not announce
|
||||||
|
// Format: multiaddress
|
||||||
NoAnnounceAddresses []string
|
NoAnnounceAddresses []string
|
||||||
BootstrapPeers []string
|
BootstrapPeers []string
|
||||||
ProtectedPeers []string
|
ProtectedPeers []string
|
||||||
@ -220,7 +257,14 @@ type Libp2p struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Pubsub struct {
|
type Pubsub struct {
|
||||||
Bootstrapper bool
|
// Run the node in bootstrap-node mode
|
||||||
|
Bootstrapper bool
|
||||||
|
// DirectPeers specifies peers with direct peering agreements. These peers are
|
||||||
|
// connected outside of the mesh, with all (valid) message unconditionally
|
||||||
|
// forwarded to them. The router will maintain open connections to these peers.
|
||||||
|
// Note that the peering agreement should be reciprocal with direct peers
|
||||||
|
// symmetrically configured at both ends.
|
||||||
|
// Type: Array of multiaddress peerinfo strings, must include peerid (/p2p/12D3K...
|
||||||
DirectPeers []string
|
DirectPeers []string
|
||||||
IPColocationWhitelist []string
|
IPColocationWhitelist []string
|
||||||
RemoteTracer string
|
RemoteTracer string
|
||||||
@ -247,10 +291,12 @@ type Metrics struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
UseIpfs bool
|
UseIpfs bool
|
||||||
IpfsOnlineMode bool
|
IpfsOnlineMode bool
|
||||||
IpfsMAddr string
|
IpfsMAddr string
|
||||||
IpfsUseForRetrieval bool
|
IpfsUseForRetrieval bool
|
||||||
|
// The maximum number of simultaneous data transfers between the client
|
||||||
|
// and storage providers
|
||||||
SimultaneousTransfers uint64
|
SimultaneousTransfers uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user