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

[Bug]: Can't spin up multiple local L1s #2528

Open
owenwahlgren opened this issue Jan 7, 2025 · 1 comment
Open

[Bug]: Can't spin up multiple local L1s #2528

owenwahlgren opened this issue Jan 7, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@owenwahlgren
Copy link

owenwahlgren commented Jan 7, 2025

Describe the bug
When trying to deploy multiple L1s locally, only the most recent L1 deployment's RPC is functional.

To Reproduce

  1. Create chain configs
avalanche blockchain create chain1 --evm --proof-of-authority --test-defaults --evm-token="TEST" --evm-chain-id=888 
avalanche blockchain create chain2 --evm --proof-of-authority --test-defaults --evm-token="TEST" --evm-chain-id=999 
  1. Deploy chain1
avalanche blockchain deploy chain1 --local
  1. Note RPC URL then confirm fetching balance for chain1 is functional
cast balance 0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC --rpc-url=<chain1 rpc>
999999976431274999435251
  1. Deploy chain2
avalanche blockchain deploy chain2 --local
  1. Note RPC URL then confirm fetching balance for chain2 is functional
cast balance 0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC --rpc-url=<chain2 rpc>
999999976431274999435251
  1. Try fetching balance on chain1 rpc again
cast balance 0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC --rpc-url=<chain1 rpc>
Error: error sending request for url (http://127.0.0.1:43791/ext/bc/S3rjJ3oAo2vo1z4qwxDma8ii3JxAEfci17EFSaxsbtTGPKuZf/rpc)

Context:
- Error #0: error sending request for url (http://127.0.0.1:43791/ext/bc/S3rjJ3oAo2vo1z4qwxDma8ii3JxAEfci17EFSaxsbtTGPKuZf/rpc)
- Error #1: client error (Connect)
- Error #2: tcp connect error: Connection refused (os error 111)
- Error #3: Connection refused (os error 111)

Expected behavior
Both RPCs should be functional

Operating System
MacOSX / Ubuntu

@owenwahlgren owenwahlgren added the bug Something isn't working label Jan 7, 2025
@felipemadero
Copy link
Collaborator

Thanks! Indeed local network support for more than one l1 is needed.

@felipemadero felipemadero self-assigned this Jan 8, 2025
@felipemadero felipemadero added this to the Replace ANR with TMPNET milestone Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog 🗄️
Development

No branches or pull requests

2 participants