]> git.bitcoin.ninja Git - ldk-java/blobdiff - src/main/java/org/ldk/structs/DirectedChannelInfo.java
Update CI references to LDK 0.0.124 drop stale memchr pins
[ldk-java] / src / main / java / org / ldk / structs / DirectedChannelInfo.java
index e6164ba017854d0d077aaa0f88a1408bb470ed62..c3b0714f1ed7eccbfcd4470a743bb6cc3503f1ea 100644 (file)
@@ -51,15 +51,6 @@ public class DirectedChannelInfo extends CommonBase {
                return ret_hu_conv;
        }
 
-       /**
-        * Returns the maximum HTLC amount allowed over the channel in the direction.
-        */
-       public long htlc_maximum_msat() {
-               long ret = bindings.DirectedChannelInfo_htlc_maximum_msat(this.ptr);
-               Reference.reachabilityFence(this);
-               return ret;
-       }
-
        /**
         * Returns the [`EffectiveCapacity`] of the channel in the direction.
         * 
@@ -76,4 +67,32 @@ public class DirectedChannelInfo extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Returns the `node_id` of the source hop.
+        * 
+        * Refers to the `node_id` forwarding the payment to the next hop.
+        */
+       public NodeId source() {
+               long ret = bindings.DirectedChannelInfo_source(this.ptr);
+               Reference.reachabilityFence(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
+               return ret_hu_conv;
+       }
+
+       /**
+        * Returns the `node_id` of the target hop.
+        * 
+        * Refers to the `node_id` receiving the payment from the previous hop.
+        */
+       public NodeId target() {
+               long ret = bindings.DirectedChannelInfo_target(this.ptr);
+               Reference.reachabilityFence(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
+               return ret_hu_conv;
+       }
+
 }