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

feat(anvil): add --prune-history flag #3488

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Oct 13, 2022

Motivation

ref #3478

add --prune-history to opt-out of full state history and only keep the current state

Solution

@mattsse mattsse added T-feature Type: feature C-anvil Command: anvil labels Oct 13, 2022
@gakonst gakonst merged commit 29315ed into foundry-rs:master Oct 13, 2022
@gakonst
Copy link
Member

gakonst commented Oct 13, 2022

This may impact usage of blockhash(...) for historical blocks?

@holic
Copy link

holic commented Jan 25, 2023

I just tried to run a deploy script against an anvil node with --prune-history and encountered a bunch of these errors:

image

Is there something about this flag that would keep scripts from working properly?

(see also #3623 for motivations behind using this flag)

@AnieeG
Copy link

AnieeG commented Jul 9, 2024

I just tried to run a deploy script against an anvil node with --prune-history and encountered a bunch of these errors:

image

Is there something about this flag that would keep scripts from working properly?

(see also #3623 for motivations behind using this flag)

I am facing this issue. Have you found any solution to this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-anvil Command: anvil T-feature Type: feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants