NodeAddress

trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
Source:
Mirror.scala

The name of the type

The name of the type

Inherited from:
Mirror
Source:
Mirror.scala

Value members

Concrete methods

def fromParts(host: String, port: Int): Try[NodeAddress]

Creates a NodeAddress from a host and port.

Creates a NodeAddress from a host and port.

Note that non-onion hosts will be resolved.

We don't attempt to resolve onion addresses (it will be done by the tor proxy), so we just recognize them based on the .onion TLD and rely on their length to separate v2/v3.

Source:
LightningMessageTypes.scala