Skip to content

Commit

Permalink
feat(en): switch to tree light mode (#1152)
Browse files Browse the repository at this point in the history
## What ❔

EN runs tree in light mode.

## Why ❔

Full tree mode is no longer required for EN as commitment generation is
moved to a new component.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.
- [ ] Linkcheck has been run via `zk linkcheck`.
  • Loading branch information
perekopskiy authored and moshababo committed Feb 20, 2024
1 parent 76ad456 commit e90b2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bin/external_node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ async fn init_tasks(

let metadata_calculator_config = MetadataCalculatorConfig {
db_path: config.required.merkle_tree_path.clone(),
mode: MerkleTreeMode::Full,
mode: MerkleTreeMode::Lightweight,
delay_interval: config.optional.metadata_calculator_delay(),
max_l1_batches_per_iter: config.optional.max_l1_batches_per_tree_iter,
multi_get_chunk_size: config.optional.merkle_tree_multi_get_chunk_size,
Expand Down

0 comments on commit e90b2d0

Please sign in to comment.