aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-21 21:37:04 +0000
committertv <tv@krebsco.de>2026-11-21 21:37:04 +0000
commitd8880260d8d5002367e86c3aab9fa504e6cec40b (patch)
treef34850a9e642d3752d4e27dbf5b7554a69dedfd0 /src/config/mod.rs
parentad968b9e834bfeec1fa3a1552b7c1e1c5a3439b3 (diff)
config: keep-actor on by default, as its help says
The help gave keep-actor's default as true, but a node that didn't set it read it as false: an option left unset takes the setting's serde default, not the help's. So a node kept its writer across a clean stop only where keep-actor was set, and options_and_settings_agree failed.
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 672b8f8..f9663c1 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -913,7 +913,7 @@ pub(crate) struct Settings {
pub(crate) genesis: bool,
pub(crate) state_file: Option<PathBuf>,
pub(crate) document_file: Option<PathBuf>,
- #[serde(default)]
+ #[serde(default = "default_keep_actor")]
pub(crate) keep_actor: bool,
#[serde(
default = "default_document_append",
@@ -1113,6 +1113,9 @@ pub(crate) const TRANSPORTS: &[(&str, bool)] = &[
("libp2p", cfg!(feature = "libp2p")),
("tor", cfg!(feature = "tor")),
];
+fn default_keep_actor() -> bool {
+ true
+}
fn default_log_format() -> String {
"auto".to_owned()
}