You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
george@thinkpad:~/dev/work/rust-custody-wallet$ du -sh target/anvil
6.3M target/anvil
I also have tests with in-memory anvil, which runs anvil instance, deploys contracts, creates transactions and makes asserts on them.
At the end of a day every time I see big cache in $HOME/.foundry/anvil directory:
george@thinkpad:~/.foundry$ ls
anvil
george@thinkpad:~/.foundry$ du -sh
50G .
Even if I rm -rf that 50gb directory, my state in project directory target/anvil is not changed, I can't understand why it is there (50gb anvil directory)
Question: can I somehow disable caching in that $HOME/.foundry/anvil directory to save ssd from unnecessary reads-writes up to 50 gb a day?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm starting anvil with command:
It creates its state in that directory:
george@thinkpad:~/dev/work/rust-custody-wallet$ du -sh target/anvil 6.3M target/anvil
I also have tests with in-memory anvil, which runs anvil instance, deploys contracts, creates transactions and makes asserts on them.
At the end of a day every time I see big cache in
$HOME/.foundry/anvil
directory:Even if I
rm -rf
that 50gb directory, my state in project directorytarget/anvil
is not changed, I can't understand why it is there (50gb anvil directory)Question: can I somehow disable caching in that
$HOME/.foundry/anvil
directory to save ssd from unnecessary reads-writes up to 50 gb a day?Beta Was this translation helpful? Give feedback.
All reactions