Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: the smt cache height #6757

Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

Currently, the smt by default is cached every 25 blocks, which is too much. reduce this down to 500 by default for archival nodes.

@SWvheerden SWvheerden requested a review from a team as a code owner January 23, 2025 07:11
Copy link

github-actions bot commented Jan 23, 2025

Test Results (CI)

    3 files    129 suites   37m 29s ⏱️
1 350 tests 1 350 ✅ 0 💤 0 ❌
4 048 runs  4 048 ✅ 0 💤 0 ❌

Results for commit e46aa85.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 23, 2025

Test Results (Integration tests)

 2 files  + 2  11 suites  +11   47m 24s ⏱️ + 47m 24s
36 tests +36  35 ✅ +35  0 💤 ±0  1 ❌ +1 
38 runs  +38  35 ✅ +35  0 💤 ±0  3 ❌ +3 

For more details on these failures, see this check.

Results for commit e46aa85. ± Comparison against base commit f0cf697.

♻️ This comment has been updated with latest results.

stringhandler
stringhandler previously approved these changes Jan 23, 2025
) -> Result<Self, ChainStorageError> {
let env = store.env();
let smt_cache_period = if prune_interval == 0 {
let smt_cache_period = if pruning_horizon == 0 || prune_interval == 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment here what the thinking is, because it's not clear why the interval / 2

@SWvheerden SWvheerden merged commit 641c4fc into tari-project:development Jan 23, 2025
15 checks passed
@SWvheerden SWvheerden deleted the sw_fix_smt_cacheheight branch January 23, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants