This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
bee-ledger/src/workers/pruning Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ impl PruningConfig {
9696#[ must_use]
9797pub 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]
151152pub 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
Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ max_milestones_to_keep = 60480
103103enabled = false
104104[pruning .by_size ]
105105enabled = true
106- target_size = 30 GB
106+ target_size = " 30GB"
107107threshold_percentage = 10.0
108- cooldown_time = 5 m
108+ cooldown_time = " 5m "
109109
110110[storage ]
111111path = " ./storage/comnet/tangle"
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ max_milestones_to_keep = 60480
101101enabled = false
102102[pruning .by_size ]
103103enabled = true
104- target_size = 30 GB
104+ target_size = " 30GB"
105105threshold_percentage = 10.0
106- cooldown_time = 5 m
106+ cooldown_time = " 5m "
107107
108108[storage ]
109109path = " ./storage/devnet/tangle"
Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ max_milestones_to_keep = 60480
126126enabled = false
127127[pruning .by_size ]
128128enabled = true
129- target_size = 30 GB
129+ target_size = " 30GB"
130130threshold_percentage = 10.0
131- cooldown_time = 5 m
131+ cooldown_time = " 5m "
132132
133133[storage ]
134134path = " ./storage/mainnet/tangle"
You can’t perform that action at this time.
0 commit comments