This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Repro for foundry-rs/foundry#11486: anvil (A) that is itself a fork hangs | |
| # when another fork (B) pulls many uncached accounts from it at once. | |
| # C (plain anvil) <- slow proxy <- A (fork) <- B (fork of A) | |
| # Usage: ./repro.sh <parallel_workers> [requests] | |
| # Env: ANVIL=/path/to/anvil (default: anvil on PATH), DELAY_MS=200 | |
| set -u | |
| cd "$(dirname "$0")" | |
| ANVIL=${ANVIL:-anvil} | |
| WORKERS=${1:-300} |