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

Add anvil RPC node support #187

Closed
wants to merge 1 commit into from
Closed

Add anvil RPC node support #187

wants to merge 1 commit into from

Conversation

Psirex
Copy link
Contributor

@Psirex Psirex commented Oct 18, 2023

Currently, only acceptance tests might be run with the anvil node.
How to run tests:

  1. Spawn anvil node in one tab: anvil --fork-url=https://mainnet.infura.io/v3/YOUR_INFURA_KEY --base-fee 0 --auto-impersonate --steps-tracing --mnemonic "test test test test test test test test test test test junk"
  2. Run acceptance tests in another tab: brownie test ./tests/acceptance --network mainnet-fork

The question is how faster is the anvil node over the ganache. My results are very strange:

  • anvil: 45.38s user 2.55s system 8% cpu 9:37.67 total
  • ganache: 35.79s user 1.96s system 20% cpu 3:08.60 total

The ganache node is almost 3 times faster.

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.

2 participants