X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FNetAddress.java;h=9714ec7c1e866130b2346cdae8ea0d4b5d6d7864;hb=32973ea2749f8efd05b543dd774763513013b38b;hp=f4f729ffc3c11686e6441b9838faa6291613daae;hpb=0de4267b2f4dd9a0b2b2dfab7efc788887894a33;p=ldk-java diff --git a/src/main/java/org/ldk/structs/NetAddress.java b/src/main/java/org/ldk/structs/NetAddress.java index f4f729ff..9714ec7c 100644 --- a/src/main/java/org/ldk/structs/NetAddress.java +++ b/src/main/java/org/ldk/structs/NetAddress.java @@ -9,7 +9,7 @@ import javax.annotation.Nullable; /** - * An address which can be used to connect to a remote peer + * An address which can be used to connect to a remote peer. */ @SuppressWarnings("unchecked") // We correctly assign various generic arrays public class NetAddress extends CommonBase { @@ -90,7 +90,8 @@ public class NetAddress extends CommonBase { } /** * A new-style Tor onion address/port on which the peer is listening. - * To create the human-readable \"hostname\", concatenate ed25519_pubkey, checksum, and version, + * + * To create the human-readable \"hostname\", concatenate the ED25519 pubkey, checksum, and version, * wrap as base32 and append \".onion\". */ public final static class OnionV3 extends NetAddress { @@ -213,7 +214,7 @@ public class NetAddress extends CommonBase { /** * Utility method to constructs a new Hostname-variant NetAddress */ - public static NetAddress hostname(Hostname hostname, short port) { + public static NetAddress hostname(org.ldk.structs.Hostname hostname, short port) { long ret = bindings.NetAddress_hostname(hostname == null ? 0 : hostname.ptr, port); Reference.reachabilityFence(hostname); Reference.reachabilityFence(port); @@ -228,7 +229,7 @@ public class NetAddress extends CommonBase { * Checks if two NetAddresss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. */ - public boolean eq(NetAddress b) { + public boolean eq(org.ldk.structs.NetAddress b) { boolean ret = bindings.NetAddress_eq(this.ptr, b == null ? 0 : b.ptr); Reference.reachabilityFence(this); Reference.reachabilityFence(b);