Skip to content

Conversation

luke-jr
Copy link
Collaborator

@luke-jr luke-jr commented Aug 7, 2025

No description provided.

Comment on lines +372 to 374
uint64_t prune_target_temporarily{(uint64_t)m_opts.prune_target_during_init};
if (prune_target_temporarily <= target) {
target = std::max(min_overall_target, (uint64_t)m_opts.prune_target_during_init);
Copy link

@kuegi kuegi Sep 7, 2025

Choose a reason for hiding this comment

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

why not also use it in the std::max ?

@kuegi
Copy link

kuegi commented Sep 8, 2025

why not go the extra mile and also check if target itself (not only the boost) is within the diskspace and cap it if necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants