Skip to content

Commit 70411e1

Browse files
committed
Make building anchors the default
1 parent 799d98b commit 70411e1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

client/src/config.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ pub struct Args {
7676
/// Index blocks including the full transaction data
7777
#[arg(long, env = "SPACED_BLOCK_INDEX_FULL", default_value = "false")]
7878
block_index_full: bool,
79-
/// Whether to maintain a trust anchors file
80-
#[arg(long, env = "SPACED_BUILD_ANCHORS", default_value = "false")]
81-
build_anchors: bool,
79+
/// Skip maintaining historical root anchors
80+
#[arg(long, env = "SPACED_SKIP_ANCHORS", default_value = "false")]
81+
skip_anchors: bool,
8282
}
8383

8484
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, ValueEnum, Serialize, Deserialize)]
@@ -179,9 +179,9 @@ impl Args {
179179
store: chain_store,
180180
};
181181

182-
let build_anchors = match args.build_anchors {
183-
true => Some(data_dir.join("root_anchors.json")),
184-
false => None,
182+
let anchors_path = match args.skip_anchors {
183+
true => None,
184+
false => Some(data_dir.join("root_anchors.json")),
185185
};
186186
let block_index_enabled = args.block_index || args.block_index_full;
187187
let block_index = if block_index_enabled {
@@ -219,7 +219,7 @@ impl Args {
219219
block_index,
220220
block_index_full: args.block_index_full,
221221
num_workers: args.jobs as usize,
222-
anchors_path: build_anchors,
222+
anchors_path,
223223
synced: false,
224224
})
225225
}

0 commit comments

Comments
 (0)