Skip to content

Issue connecting to node running on localhost #361

@0xMimir

Description

@0xMimir

When running 2 nodes on same computer, they don't connect one to another. First node has remote peers, while second has only first node as peer.

When following query is ran on graphql interface:

query MyQuery {
  syncStatus
}

First node gets to BOOTSTRAP and later to SYNCED, while second node is stuck at LISTENING

Steps to reproduce:

In one terminal run:

export OPENMINA_DISCOVERY_FILTER_ADDR=false
cargo run --bin openmina -- node -s 5KgwoC4tGKNE4G3XP6JDYXKPSMyzjyEfKxdACsnqwTXBaSD75y4

In second terminal run:

export OPENMINA_DISCOVERY_FILTER_ADDR=false
cargo run --bin openmina -- node -P /ip4/127.0.0.1/tcp/8302/p2p/12D3KooWJDihKQfdBUgbRQpMUyUj7avdaJUqin1hJGGQKE8oGF72 --libp2p-port 4001 -p 4903

This same issue also happens when node is ran on another computer on local network.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions