Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit f9b157b

Browse files
committed
Put human-friendly sizes/durations in quotation marks in configs
1 parent 4c689ff commit f9b157b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

bee-ledger/src/workers/pruning/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ impl PruningConfig {
9696
#[must_use]
9797
pub struct PruningMilestonesConfigBuilder {
9898
enabled: Option<bool>,
99+
#[serde(alias = "maxMilestonesToKeep")]
99100
max_milestones_to_keep: Option<u32>,
100101
}
101102

@@ -150,8 +151,11 @@ impl PruningReceiptsConfigBuilder {
150151
#[must_use]
151152
pub struct PruningBySizeConfigBuilder {
152153
enabled: Option<bool>,
154+
#[serde(alias = "targetSize")]
153155
target_size: Option<String>,
156+
#[serde(alias = "thresholdPercentage")]
154157
threshold_percentage: Option<f32>,
158+
#[serde(alias = "cooldownTime")]
155159
cooldown_time: Option<String>,
156160
}
157161

bee-node/bee-node/config.chrysalis-comnet.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ max_milestones_to_keep = 60480
103103
enabled = false
104104
[pruning.by_size]
105105
enabled = true
106-
target_size = 30GB
106+
target_size = "30GB"
107107
threshold_percentage = 10.0
108-
cooldown_time = 5m
108+
cooldown_time = "5m"
109109

110110
[storage]
111111
path = "./storage/comnet/tangle"

bee-node/bee-node/config.chrysalis-devnet.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ max_milestones_to_keep = 60480
101101
enabled = false
102102
[pruning.by_size]
103103
enabled = true
104-
target_size = 30GB
104+
target_size = "30GB"
105105
threshold_percentage = 10.0
106-
cooldown_time = 5m
106+
cooldown_time = "5m"
107107

108108
[storage]
109109
path = "./storage/devnet/tangle"

bee-node/bee-node/config.chrysalis-mainnet.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ max_milestones_to_keep = 60480
126126
enabled = false
127127
[pruning.by_size]
128128
enabled = true
129-
target_size = 30GB
129+
target_size = "30GB"
130130
threshold_percentage = 10.0
131-
cooldown_time = 5m
131+
cooldown_time = "5m"
132132

133133
[storage]
134134
path = "./storage/mainnet/tangle"

0 commit comments

Comments
 (0)