-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
anvil: make max on disk history limit configurable #8399
Comments
I would like to try take this |
assigned, I fixed a link above that provided relevant context:
|
after set it to but if user enabled it, the state will be memory only: foundry/crates/anvil/src/eth/backend/mem/storage.rs Lines 84 to 87 in 642f13f
it overwrites the
to |
ah you're right so restricting this with --prune-history doesn't have any effect actually so this issue is kinda pointless... |
I think we should expose |
I agree, it needs a new arg to set its value |
this makes sense to me as well |
@mattsse @grandizzy please check #8412 if this is what we want, it still feels a bit weired to have two config for in memory limit and on disk limit |
thanks, I think that's OK, if I correctly understand there is only one config exposed for disk limit, that is the newly added |
Component
Anvil
Describe the feature you would like
foundry/crates/anvil/src/eth/backend/mem/storage.rs
Lines 45 to 46 in 82ff8ee
we already have this for the memory limit
foundry/crates/anvil/src/eth/backend/mem/storage.rs
Lines 77 to 78 in 82ff8ee
foundry/crates/anvil/src/cmd.rs
Lines 160 to 163 in 82ff8ee
maybe those can even be combined, because I think the
--prune_history is slightly confusing
So I think this should be fixed by setting
foundry/crates/anvil/src/eth/backend/mem/storage.rs
Line 78 in 82ff8ee
to
limit
Additional context
No response
The text was updated successfully, but these errors were encountered: