Function get_esplora_url

Source
fn get_esplora_url(server_url: SafeUrl) -> Result<String>
Expand description

When a port is specified in the Esplora URL, the esplora client inside LDK node cannot connect to the lightning node when there is a trailing slash. The SafeUrl::Display function will always serialize the SafeUrl with a trailing slash, which causes the connection to fail.

To handle this, we explicitly construct the esplora URL when a port is specified.