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

Remove cleanup functions related to unchecked blocks. #4384

Merged

Conversation

clemahieu
Copy link
Contributor

Since the addition of the ascending bootstrapped, all unchecked blocks are held in memory and there is already a size limit on how many are kept in the container. Previously these blocks were stored on disk and the number of items was unbounded which necessitated periodic cleanup.

Cleaning the unchecked blocks could actually negatively affect the ascending bootstrapper and clobber critical blocks it needs causing the need to download them again.

@dsiganos
Copy link
Contributor

dsiganos commented Jan 22, 2024

We do not need a periodic cleanup as long as new entries replace old ones.
And ideally entries that have entered the unchecked table should be guaranteed some minimum time before deletion (some hysterisis) to avoid attacks where the unchecked tables is constantly filled with rubbish to flush out good entries.

dsiganos
dsiganos previously approved these changes Jan 22, 2024
pwojcikdev
pwojcikdev previously approved these changes Jan 22, 2024
These functions are no longer relevant since the blocks are now stored in memory and are bounded.
@clemahieu clemahieu dismissed stale reviews from pwojcikdev and dsiganos via f9c9915 January 24, 2024 14:35
@clemahieu clemahieu force-pushed the remove_unchecked_clear_startup branch from f4ce5b9 to f9c9915 Compare January 24, 2024 14:35
@clemahieu clemahieu merged commit aeddeb5 into nanocurrency:develop Jan 26, 2024
17 of 19 checks passed
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.

3 participants