Skip to content

Commit

Permalink
add posibility for experimental pruning in docker_entrypoint.sh (#949)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin <marcin.radecki@cardinals.cc>
  • Loading branch information
maciejnems and Marcin-Radecki committed Feb 28, 2023
1 parent 8e4cbcd commit 5172d74
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bin/node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ fn default_blocks_pruning() -> DatabasePruningMode {
}

fn pruning_changed(params: &PruningParams) -> bool {
let state_pruning_changed = params.state_pruning != default_state_pruning();
let state_pruning_changed =
params.state_pruning.is_some() && (params.state_pruning != default_state_pruning());

let blocks_pruning_changed = params.blocks_pruning != default_blocks_pruning();

Expand Down
1 change: 0 additions & 1 deletion docker/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ fi

ARGS=(
--validator
--state-pruning archive
--execution Native
--name "${NAME}"
--base-path "${BASE_PATH}"
Expand Down
1 change: 0 additions & 1 deletion scripts/run_nodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ run_node() {
./target/release/aleph-node purge-chain --base-path $BASE_PATH/$account_id --chain $BASE_PATH/chainspec.json -y
./target/release/aleph-node \
$validator \
--state-pruning=archive \
--chain $BASE_PATH/chainspec.json \
--base-path $BASE_PATH/$account_id \
--name $auth \
Expand Down

0 comments on commit 5172d74

Please sign in to comment.