Skip to content

feat(anvil): Add memery limit to anvil node#7482

Merged
mattsse merged 11 commits into
foundry-rs:masterfrom
DoTheBestToGetTheBest:anvil-node
Mar 25, 2024
Merged

feat(anvil): Add memery limit to anvil node#7482
mattsse merged 11 commits into
foundry-rs:masterfrom
DoTheBestToGetTheBest:anvil-node

Conversation

@DoTheBestToGetTheBest

@DoTheBestToGetTheBest DoTheBestToGetTheBest commented Mar 25, 2024

Copy link
Copy Markdown
Contributor

Currently anvil can running into error "EVM error MemoryLimitOOG" closes #7478

We add here a way to custom the memory limit for anvil node.

The default assigned here is 100 and can be changed if it's not the right default number.

EDIT: changed default value for memory-limit to 10000 after seeing all test related to anvil failling

@mattsse mattsse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

great.

we shouldn't introduce new constants and instead use the revm defaults

Comment thread crates/anvil/src/config.rs Outdated
Comment thread crates/anvil/src/config.rs Outdated
@DoTheBestToGetTheBest

Copy link
Copy Markdown
Contributor Author

great.

we shouldn't introduce new constants and instead use the revm defaults

ty very much for you review, does changes looks better for you ?

@mattsse mattsse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

Comment thread crates/anvil/src/config.rs Outdated
@mattsse mattsse merged commit bf5bfe0 into foundry-rs:master Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

anvil: configure memory limit

2 participants