Blockstream / greenlight

Build apps using self-custodial lightning nodes in the cloud
https://blockstream.github.io/greenlight/getting-started/
MIT License
109 stars 27 forks source link

lightningd fails to resolve localhost #400

Closed ErikDeSmedt closed 5 months ago

ErikDeSmedt commented 5 months ago

The docker-image was failing to execute the tests on my machine.

A greenlight node connects to a bitcoind-proxy which should be exposed on localhost. For some reason, the proxy isn't always accepting connections when localhost is used.

This works

bitcoin-cli --rpcconnect=127.0.0.1:<proxy_port>

This doesn't work

bitcoin-cli --rpcoconnect=localhost:<proxy_port>

I'm not sure if this is the right approach. We know our bitcoind proxy only supports ipv4. So I don't see a good reason to go for the more universal localhost?