From e5f32f288de33c57a95601ed8c0cce662a26f3d2 Mon Sep 17 00:00:00 2001 From: Phi Date: Tue, 19 Sep 2023 12:32:41 +0200 Subject: [PATCH 1/3] Update ColdStoreType comments Update comments to say that "discard" is the default mode in SplitStore. --- node/config/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/config/types.go b/node/config/types.go index dfdef5bb2..e740ea24a 100644 --- a/node/config/types.go +++ b/node/config/types.go @@ -585,7 +585,7 @@ type Chainstore struct { type Splitstore struct { // ColdStoreType specifies the type of the coldstore. - // It can be "messages" (default) to store only messages, "universal" to store all chain state or "discard" for discarding cold blocks. + // It can be "discard" (default) for discarding cold blocks, "messages" (default) to store only messages or "universal" to store all chain state.. ColdStoreType string // HotStoreType specifies the type of the hotstore. // Only currently supported value is "badger". From 8b77839d38303456cd4da33762109bef3e715573 Mon Sep 17 00:00:00 2001 From: Phi Date: Tue, 19 Sep 2023 13:21:07 +0200 Subject: [PATCH 2/3] Make gen Make gen --- documentation/en/default-lotus-config.toml | 2 +- node/config/doc_gen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/en/default-lotus-config.toml b/documentation/en/default-lotus-config.toml index c37e40f74..0e125c8fb 100644 --- a/documentation/en/default-lotus-config.toml +++ b/documentation/en/default-lotus-config.toml @@ -195,7 +195,7 @@ [Chainstore.Splitstore] # ColdStoreType specifies the type of the coldstore. - # It can be "messages" (default) to store only messages, "universal" to store all chain state or "discard" for discarding cold blocks. + # It can be "discard" (default) for discarding cold blocks, "messages" (default) to store only messages or "universal" to store all chain state.. # # type: string # env var: LOTUS_CHAINSTORE_SPLITSTORE_COLDSTORETYPE diff --git a/node/config/doc_gen.go b/node/config/doc_gen.go index a126efb0d..23e2c06be 100644 --- a/node/config/doc_gen.go +++ b/node/config/doc_gen.go @@ -1302,7 +1302,7 @@ Submitting a smaller number of prove commits per epoch would reduce the possibil Type: "string", Comment: `ColdStoreType specifies the type of the coldstore. -It can be "messages" (default) to store only messages, "universal" to store all chain state or "discard" for discarding cold blocks.`, +It can be "discard" (default) for discarding cold blocks, "messages" (default) to store only messages or "universal" to store all chain state..`, }, { Name: "HotStoreType", From e8570bd69c77cb092c56c613a7f2de06a3df86e0 Mon Sep 17 00:00:00 2001 From: Phi Date: Fri, 22 Sep 2023 15:24:55 +0200 Subject: [PATCH 3/3] Remove double default Remove double default --- documentation/en/default-lotus-config.toml | 2 +- node/config/doc_gen.go | 2 +- node/config/types.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/en/default-lotus-config.toml b/documentation/en/default-lotus-config.toml index 0e125c8fb..1f143b896 100644 --- a/documentation/en/default-lotus-config.toml +++ b/documentation/en/default-lotus-config.toml @@ -195,7 +195,7 @@ [Chainstore.Splitstore] # ColdStoreType specifies the type of the coldstore. - # It can be "discard" (default) for discarding cold blocks, "messages" (default) to store only messages or "universal" to store all chain state.. + # It can be "discard" (default) for discarding cold blocks, "messages" to store only messages or "universal" to store all chain state.. # # type: string # env var: LOTUS_CHAINSTORE_SPLITSTORE_COLDSTORETYPE diff --git a/node/config/doc_gen.go b/node/config/doc_gen.go index 23e2c06be..4ea235704 100644 --- a/node/config/doc_gen.go +++ b/node/config/doc_gen.go @@ -1302,7 +1302,7 @@ Submitting a smaller number of prove commits per epoch would reduce the possibil Type: "string", Comment: `ColdStoreType specifies the type of the coldstore. -It can be "discard" (default) for discarding cold blocks, "messages" (default) to store only messages or "universal" to store all chain state..`, +It can be "discard" (default) for discarding cold blocks, "messages" to store only messages or "universal" to store all chain state..`, }, { Name: "HotStoreType", diff --git a/node/config/types.go b/node/config/types.go index e740ea24a..95721a579 100644 --- a/node/config/types.go +++ b/node/config/types.go @@ -585,7 +585,7 @@ type Chainstore struct { type Splitstore struct { // ColdStoreType specifies the type of the coldstore. - // It can be "discard" (default) for discarding cold blocks, "messages" (default) to store only messages or "universal" to store all chain state.. + // It can be "discard" (default) for discarding cold blocks, "messages" to store only messages or "universal" to store all chain state.. ColdStoreType string // HotStoreType specifies the type of the hotstore. // Only currently supported value is "badger".