From 14ec9a2068bba34873f8ddd45d01327347ec12a1 Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 11 Jul 2020 16:55:13 +0800 Subject: [PATCH] update storage miner and seal worker document --- .github/ISSUE_TEMPLATE/sealingfailed.md | 4 ++-- api/api_storage.go | 2 +- api/client/client.go | 2 +- api/test/mining.go | 2 +- chain/gen/genesis/genesis.go | 2 +- cmd/lotus-fountain/main.go | 4 ++-- cmd/lotus-fountain/site/_miner.html | 6 +++--- cmd/lotus-fountain/site/wait.html | 8 ++++---- cmd/lotus-seal-worker/main.go | 2 +- cmd/lotus-storage-miner/info.go | 2 +- cmd/lotus-storage-miner/init.go | 18 +++++++++--------- cmd/lotus-storage-miner/main.go | 2 +- cmd/lotus-storage-miner/market.go | 6 +++--- cmd/lotus-storage-miner/run.go | 2 +- cmd/lotus-storage-miner/stop.go | 2 +- documentation/en/.glossary.json | 10 +++++----- documentation/en/.library.json | 6 +++--- documentation/en/api-scripting-support.md | 6 +++--- documentation/en/api.md | 8 ++++---- documentation/en/architecture.md | 2 +- documentation/en/dev-tools-pond-ui.md | 2 +- documentation/en/faqs.md | 6 +++--- documentation/en/getting-started.md | 8 ++++---- documentation/en/hardware-mining.md | 2 +- ...s-seal-worker.md => mining-lotus-worker.md} | 18 +++++++++--------- documentation/en/mining-troubleshooting.md | 4 ++-- documentation/en/mining.md | 6 +++--- documentation/en/retrieving-data.md | 2 +- documentation/en/setting-a-static-port.md | 2 +- .../en/storing-data-troubleshooting.md | 2 +- documentation/en/storing-data.md | 2 +- lotuspond/front/src/FullNode.js | 2 +- lotuspond/front/src/StorageNode.js | 2 +- lotuspond/front/src/StorageNodeInit.js | 2 +- node/builder.go | 4 ++-- node/config/def.go | 2 +- node/modules/dtypes/miner.go | 4 ++-- node/modules/dtypes/shutdown.go | 2 +- node/modules/storageminer.go | 2 +- scripts/devnet.bash | 2 +- scripts/lotus-miner.service | 2 +- scripts/miner-mon.sh | 2 +- scripts/quick-network-join.bash | 2 +- tools/dockers/docker-examples/README.md | 4 ++-- .../basic-miner-busybox/README.md | 2 +- 45 files changed, 92 insertions(+), 92 deletions(-) rename documentation/en/{mining-lotus-seal-worker.md => mining-lotus-worker.md} (74%) diff --git a/.github/ISSUE_TEMPLATE/sealingfailed.md b/.github/ISSUE_TEMPLATE/sealingfailed.md index 5355db10f..2084b8dd4 100644 --- a/.github/ISSUE_TEMPLATE/sealingfailed.md +++ b/.github/ISSUE_TEMPLATE/sealingfailed.md @@ -25,9 +25,9 @@ The output of `./lotus-miner sectors list`. The output of `./lotus-miner sectors status --log ` for the failed sector(s). -**Lotus storage miner logs** +**Lotus miner logs** -Please go through the logs of your storage miner, and include screenshots of any error-like messages you find. +Please go through the logs of your miner, and include screenshots of any error-like messages you find. **Version** diff --git a/api/api_storage.go b/api/api_storage.go index 6402de2b6..f06207cd2 100644 --- a/api/api_storage.go +++ b/api/api_storage.go @@ -16,7 +16,7 @@ import ( "github.com/filecoin-project/specs-actors/actors/abi" ) -// StorageMiner is a low-level interface to the Filecoin network storage miner node +// StorageMiner is a low-level interface to the Filecoin network miner node type StorageMiner interface { Common diff --git a/api/client/client.go b/api/client/client.go index 20bad2048..4029838fa 100644 --- a/api/client/client.go +++ b/api/client/client.go @@ -34,7 +34,7 @@ func NewFullNodeRPC(addr string, requestHeader http.Header) (api.FullNode, jsonr return &res, closer, err } -// NewStorageMinerRPC creates a new http jsonrpc client for storage miner +// NewStorageMinerRPC creates a new http jsonrpc client for miner func NewStorageMinerRPC(addr string, requestHeader http.Header) (api.StorageMiner, jsonrpc.ClientCloser, error) { var res apistruct.StorageMinerStruct closer, err := jsonrpc.NewMergeClient(addr, "Filecoin", diff --git a/api/test/mining.go b/api/test/mining.go index d2b56758e..dcbd59dd1 100644 --- a/api/test/mining.go +++ b/api/test/mining.go @@ -89,7 +89,7 @@ func TestDealMining(t *testing.T, b APIBuilder, blocktime time.Duration, carExpo ctx := context.Background() n, sn := b(t, 1, []StorageMiner{ {Full: 0, Preseal: PresealGenesis}, - {Full: 0, Preseal: 0}, // TODO: Add support for storage miners on non-first full node + {Full: 0, Preseal: 0}, // TODO: Add support for miners on non-first full node }) client := n[0].FullNode.(*impl.FullNodeAPI) provider := sn[1] diff --git a/chain/gen/genesis/genesis.go b/chain/gen/genesis/genesis.go index f1f9812f1..b5b9dfe28 100644 --- a/chain/gen/genesis/genesis.go +++ b/chain/gen/genesis/genesis.go @@ -312,7 +312,7 @@ func MakeGenesisBlock(ctx context.Context, bs bstore.Blockstore, sys runtime.Sys stateroot, err = SetupStorageMiners(ctx, cs, stateroot, template.Miners) if err != nil { - return nil, xerrors.Errorf("setup storage miners failed: %w", err) + return nil, xerrors.Errorf("setup miners failed: %w", err) } cst := cbor.NewCborStore(bs) diff --git a/cmd/lotus-fountain/main.go b/cmd/lotus-fountain/main.go index 9743f209f..b6f51f9c0 100644 --- a/cmd/lotus-fountain/main.go +++ b/cmd/lotus-fountain/main.go @@ -414,7 +414,7 @@ func (h *handler) msgwait(w http.ResponseWriter, r *http.Request) { if mw.Receipt.ExitCode != 0 { w.WriteHeader(400) - w.Write([]byte(xerrors.Errorf("create storage miner failed: exit code %d", mw.Receipt.ExitCode).Error())) + w.Write([]byte(xerrors.Errorf("create miner failed: exit code %d", mw.Receipt.ExitCode).Error())) return } w.WriteHeader(200) @@ -437,7 +437,7 @@ func (h *handler) msgwaitaddr(w http.ResponseWriter, r *http.Request) { if mw.Receipt.ExitCode != 0 { w.WriteHeader(400) - w.Write([]byte(xerrors.Errorf("create storage miner failed: exit code %d", mw.Receipt.ExitCode).Error())) + w.Write([]byte(xerrors.Errorf("create miner failed: exit code %d", mw.Receipt.ExitCode).Error())) return } w.WriteHeader(200) diff --git a/cmd/lotus-fountain/site/_miner.html b/cmd/lotus-fountain/site/_miner.html index d83f90d72..a0ee95628 100644 --- a/cmd/lotus-fountain/site/_miner.html +++ b/cmd/lotus-fountain/site/_miner.html @@ -1,14 +1,14 @@ - Creating Storage Miner - Lotus Fountain + Creating Miner - Lotus Fountain
- [CREATING STORAGE MINER] + [CREATING MINER]
@@ -26,7 +26,7 @@ Waiting for transaction on chain..
- When creating storage miner, DO NOT REFRESH THE PAGE, wait for it to load. This can take more than 5min. + When creating miner, DO NOT REFRESH THE PAGE, wait for it to load. This can take more than 5min.
If you don't have an owner/worker address, you can create it by following these instructions. diff --git a/cmd/lotus-fountain/site/wait.html b/cmd/lotus-fountain/site/wait.html index f6f0e2062..953db16a5 100644 --- a/cmd/lotus-fountain/site/wait.html +++ b/cmd/lotus-fountain/site/wait.html @@ -1,14 +1,14 @@ - Creating Storage Miner (wait) - Lotus Fountain + Creating Miner (wait) - Lotus Fountain
- [CREATING STORAGE MINER] + [CREATING MINER]
Gas Funds:    - WAIT @@ -17,10 +17,10 @@ Miner Actor:  - WAIT