X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FFilesystemPersister.cs;h=336faf567b3ffbb5f7a12b7544eef5a81c168d5d;hb=afc50e5d491a11364849383b75a8f939df703bac;hp=7c9816a95647df74c8eaedb1bedbcb2d8e195735;hpb=8aa8a96fc6d8fcdd3fbb419b4b4c12482af14938;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/FilesystemPersister.cs b/c_sharp/src/org/ldk/structs/FilesystemPersister.cs index 7c9816a9..336faf56 100644 --- a/c_sharp/src/org/ldk/structs/FilesystemPersister.cs +++ b/c_sharp/src/org/ldk/structs/FilesystemPersister.cs @@ -51,13 +51,15 @@ public class FilesystemPersister : CommonBase { /** * Read `ChannelMonitor`s from disk. */ - public Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ read_channelmonitors(org.ldk.structs.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.ptr, signer_provider.ptr); GC.KeepAlive(this); - GC.KeepAlive(keys_manager); + GC.KeepAlive(entropy_source); + GC.KeepAlive(signer_provider); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ ret_hu_conv = Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ.constr_from_ptr(ret); - if (this != null) { this.ptrs_to.AddLast(keys_manager); }; + if (this != null) { this.ptrs_to.AddLast(entropy_source); }; + if (this != null) { this.ptrs_to.AddLast(signer_provider); }; return ret_hu_conv; }