From fc7073529d08a1c6d6b2409a494a95f5d013c5a4 Mon Sep 17 00:00:00 2001 From: XiaoBei <1505929057@qq.com> Date: Mon, 6 Jan 2025 09:06:28 +0800 Subject: [PATCH] chore(docs): fix typos (#12807) --- blockstore/splitstore/README.md | 6 +++--- blockstore/splitstore/splitstore_compact.go | 2 +- cmd/lotus-stats/README.md | 2 +- documentation/changelog/CHANGELOG_0.x.md | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/blockstore/splitstore/README.md b/blockstore/splitstore/README.md index 1490004cf03..00b18ffdf3f 100644 --- a/blockstore/splitstore/README.md +++ b/blockstore/splitstore/README.md @@ -21,7 +21,7 @@ To enable the splitstore, edit `.lotus/config.toml` and add the following: EnableSplitstore = true ``` -If you intend to use the discard coldstore, your also need to add the following: +If you intend to use the discard coldstore, you also need to add the following: ``` [Chainstore.Splitstore] ColdStoreType = "discard" @@ -84,7 +84,7 @@ can be substantial for full archival nodes. All new writes are directed to the hotstore, while reads first hit the hotstore, with fallback to the coldstore. -Once 5 finalities have ellapsed, and every finality henceforth, the +Once 5 finalities have elapsed, and every finality henceforth, the blockstore _compacts_. Compaction is the process of moving all unreachable objects within the last 4 finalities from the hotstore to the coldstore. If the system is configured with a discard coldstore, @@ -102,7 +102,7 @@ Compaction works transactionally with the following algorithm: - We collect cold objects by iterating through the hotstore and checking the mark set; if an object is not marked, then it is candidate for purge. - When running with a coldstore, we next copy all cold objects to the coldstore. - At this point we are ready to begin purging: - - We sort cold objects heaviest first, so as to never delete the consituents of a DAG before the DAG itself (which would leave dangling references) + - We sort cold objects heaviest first, so as to never delete the constituents of a DAG before the DAG itself (which would leave dangling references) - We delete in small batches taking a lock; each batch is checked again for marks, from the concurrent transactional mark, so as to never delete anything live - We then end the transaction and compact/gc the hotstore. diff --git a/blockstore/splitstore/splitstore_compact.go b/blockstore/splitstore/splitstore_compact.go index 78feb5bf6de..d3afdd25736 100644 --- a/blockstore/splitstore/splitstore_compact.go +++ b/blockstore/splitstore/splitstore_compact.go @@ -519,7 +519,7 @@ func (s *SplitStore) applyProtectors() error { // - We collect cold objects by iterating through the hotstore and checking the mark set; if an object is not marked, then it is candidate for purge. // - When running with a coldstore, we next copy all cold objects to the coldstore. // - At this point we are ready to begin purging: -// - We sort cold objects heaviest first, so as to never delete the consituents of a DAG before the DAG itself (which would leave dangling references) +// - We sort cold objects heaviest first, so as to never delete the constituents of a DAG before the DAG itself (which would leave dangling references) // - We delete in small batches taking a lock; each batch is checked again for marks, from the concurrent transactional mark, so as to never delete anything live // // - We then end the transaction and compact/gc the hotstore. diff --git a/cmd/lotus-stats/README.md b/cmd/lotus-stats/README.md index 4311e1aa7bc..1b58d15c9cc 100644 --- a/cmd/lotus-stats/README.md +++ b/cmd/lotus-stats/README.md @@ -43,4 +43,4 @@ The default username and password for grafana are both `admin`. ## Updating the dashboard After importing the provided dashboard in `chain.dashboard.json`, you may make changes to the dashboard. To export -the dashboard to be commited back to the project, make sure the option "sharing externally" is toggled on. +the dashboard to be committed back to the project, make sure the option "sharing externally" is toggled on. diff --git a/documentation/changelog/CHANGELOG_0.x.md b/documentation/changelog/CHANGELOG_0.x.md index fce0805f9dc..06682abee7c 100644 --- a/documentation/changelog/CHANGELOG_0.x.md +++ b/documentation/changelog/CHANGELOG_0.x.md @@ -83,7 +83,7 @@ This is a consensus-breaking hotfix that addresses an issue in specs-actors v2.0 - sync unmark-bad --all (https://github.com/filecoin-project/lotus/pull/4296) - decode parameters for multisig transactions in inspect (https://github.com/filecoin-project/lotus/pull/4312) - Chain is love (https://github.com/filecoin-project/lotus/pull/4321) -- lotus-stats: optmize getting miner power (https://github.com/filecoin-project/lotus/pull/4315) +- lotus-stats: optimize getting miner power (https://github.com/filecoin-project/lotus/pull/4315) - implement tape upgrade (https://github.com/filecoin-project/lotus/pull/4322) # 0.9.1 / 2020-10-10 @@ -453,7 +453,7 @@ This release introduces some critical fixes to message selection and gas estimat #### Core Lotus -- Don't use latency as initital estimate for blocksync (https://github.com/filecoin-project/lotus/pull/3648) +- Don't use latency as initial estimate for blocksync (https://github.com/filecoin-project/lotus/pull/3648) - Add niceSleep 1 second when drand errors (https://github.com/filecoin-project/lotus/pull/3664) - Fix isChainNearSync check in block validator (https://github.com/filecoin-project/lotus/pull/3650) - Add peer to peer manager before fetching the tipset (https://github.com/filecoin-project/lotus/pull/3667) @@ -761,7 +761,7 @@ fit into the sector capacity. This should increase the packing efficiency of min ### Renamed features -To improve the user experience, we updated several names to mainatin +To improve the user experience, we updated several names to maintain standard prefixing, and to better reflect the meaning of the features being referenced. In particular, the Lotus miner binary is now called `lotus-miner`, the default