Comments (7)
Usually developers prefer to use 0.0.0.0
which forces OS to bound server to all available interfaces. But this comes with limitation that when you will request local address of bound socket you will receive 0.0.0.0:<some port>
instead of real interface address. To get this addresses you need to enumerate all the interfaces and bound to their IP addresses manually. But there is no such functionality in nim-libp2p
yet, so REST server reports what nim-libp2p
provides to it.
And to note that that provided multiaddresses are 100% correct, but i agree this addresses are unusable...
from nimbus-eth2.
This is libp2p
known issue and probably limitation.
from nimbus-eth2.
What do you mean by "limitation"? I'd assume that If it works for discovery it can be made to work for the p2p address.
from nimbus-eth2.
By word "limitation" i mean that nim-libp2p
developers do not implemented this functionality yet and i have not seen such functionality in plans.
from nimbus-eth2.
To get this addresses you need to enumerate all the interfaces and bound to their IP addresses manually. But there is no such functionality in nim-libp2p yet, so REST server reports what nim-libp2p provides to it.
I though that's what --nat=extip:...
is for. To avoid having to guess which interface is the correct one.
from nimbus-eth2.
libp2p
should collect its own addresses while talking with other nodes during identify phase. And replace 0.0.0.0
with this addresses.
from nimbus-eth2.
I see, well, then I guess the only sensible thing is to patch it after querying the API since fixing this is too difficult?
from nimbus-eth2.
Related Issues (20)
- Build from source fails if certain special characters are in the users file path to project HOT 2
- Clear single-vote attestations from pool when aggregate is full
- Optimizing syncing of sparse branches on stalled chain HOT 1
- Segmentation fault of 24.2.2 on Windows Server 2019 Standard HOT 10
- Nimbus CL < > Prysm VC incompatibility HOT 3
- Nimbus CL < > Lodestar VC incompatibility HOT 4
- Handle 404 errors in getAggregatedAttestation response HOT 1
- publishBlockV2 fails gossip validation for valid block HOT 7
- The debug REST API is not serving recent states (less than 2 days old) HOT 6
- Checkpoint-synced nodes appear to not use ERA files HOT 2
- Error: Unhandled exception: Asynchronous task [sendMessageSlow() at pubsubpeer.nim:301] was cancelled! [FutureDefect] HOT 8
- Release tarballs missing vendor folder
- Single command for beacon node and checkpoint sync. Remove separate command for `trustedNodeSync` HOT 3
- Require flag when resuming from past-weak-subjectivity database / genesis HOT 1
- build error: incompatible pointer type HOT 5
- Check conten-type and return 415 if not supported by route HOT 7
- Beacon node's P2P degrades permanently after 40 minutes of no connectivity HOT 8
- Bug: Error build with cmd "make -jX nimbus_beacon_node" HOT 11
- Compilation error when "import libp2p/multicodec" is added to sync_manager.nim HOT 12
- Checkpoint sync fails with "Attempt to download checkpoint state timed out" on holesky on all endpoints HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimbus-eth2.