Update auto-generated bindings to 0.0.102
[ldk-java] / src / main / java / org / ldk / structs / ReadOnlyNetworkGraph.java
index ac1069d55cd6165c4a087b3ada7bcac779c85725..0938058cceeb7004765a3d87579a2e8997192a3e 100644 (file)
@@ -19,4 +19,17 @@ public class ReadOnlyNetworkGraph extends CommonBase {
                if (ptr != 0) { bindings.ReadOnlyNetworkGraph_free(ptr); }
        }
 
+       /**
+        * Get network addresses by node id.
+        * Returns None if the requested node is completely unknown,
+        * or if node announcement for the node was never received.
+        */
+       public Option_CVec_NetAddressZZ get_addresses(byte[] pubkey) {
+               long ret = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, pubkey);
+               if (ret >= 0 && ret < 1024) { return null; }
+               Option_CVec_NetAddressZZ ret_hu_conv = Option_CVec_NetAddressZZ.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
 }