[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / FilesystemPersister.java
index 5da5c1c1e5992f66909356cb5b768b7002a1fdf1..118a806bad299ab2e7390b2283439fe7530547d7 100644 (file)
@@ -40,7 +40,7 @@ public class FilesystemPersister extends CommonBase {
                Reference.reachabilityFence(path_to_channel_data);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.FilesystemPersister ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.FilesystemPersister(null, ret); }
-               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
                return ret_hu_conv;
        }
 
@@ -56,13 +56,15 @@ public class FilesystemPersister extends CommonBase {
        /**
         * Read `ChannelMonitor`s from disk.
         */
-       public Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ read_channelmonitors(KeysInterface keys_manager) {
-               long ret = bindings.FilesystemPersister_read_channelmonitors(this.ptr, keys_manager == null ? 0 : keys_manager.ptr);
+       public Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ read_channelmonitors(org.ldk.structs.EntropySource entropy_source, org.ldk.structs.SignerProvider signer_provider) {
+               long ret = bindings.FilesystemPersister_read_channelmonitors(this.ptr, entropy_source == null ? 0 : entropy_source.ptr, signer_provider == null ? 0 : signer_provider.ptr);
                Reference.reachabilityFence(this);
-               Reference.reachabilityFence(keys_manager);
+               Reference.reachabilityFence(entropy_source);
+               Reference.reachabilityFence(signer_provider);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ ret_hu_conv = Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ.constr_from_ptr(ret);
-               this.ptrs_to.add(keys_manager);
+               if (this != null) { this.ptrs_to.add(entropy_source); };
+               if (this != null) { this.ptrs_to.add(signer_provider); };
                return ret_hu_conv;
        }