Update auto-generated bindings to LDK v0.0.99
[ldk-java] / src / main / java / org / ldk / structs / ChannelMonitor.java
index aef52a1d8cf15bd59649dfd88a030395e5225988..68b04ace676866fbdce499a43934ea2a48a72c61 100644 (file)
@@ -337,4 +337,15 @@ public class ChannelMonitor extends CommonBase {
                return ret;
        }
 
+       /**
+        * Gets the latest best block which was connected either via the [`chain::Listen`] or
+        * [`chain::Confirm`] interfaces.
+        */
+       public BestBlock current_best_block() {
+               long ret = bindings.ChannelMonitor_current_best_block(this.ptr);
+               BestBlock ret_hu_conv = new BestBlock(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
 }