X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FTwoTuple_BlockHashChannelManagerZ.cs;h=8267f203659d05d05500baae237637abd6468a9b;hb=c6777737ea14e7814b0fa7d6fe16536f31d4a82b;hp=5a3f91f3d5f4b680960f1e023182814aef26162b;hpb=ee72c84d4bf9e2404e02fe20155efb502ceaee1b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_BlockHashChannelManagerZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_BlockHashChannelManagerZ.cs index 5a3f91f3..8267f203 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_BlockHashChannelManagerZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_BlockHashChannelManagerZ.cs @@ -39,24 +39,31 @@ public class TwoTuple_BlockHashChannelManagerZ : CommonBase { /** * Creates a new C2Tuple_BlockHashChannelManagerZ from the contained elements. */ - public static TwoTuple_BlockHashChannelManagerZ of(byte[] a, FeeEstimator b_fee_est, Watch b_chain_monitor, BroadcasterInterface b_tx_broadcaster, Logger b_logger, KeysInterface b_keys_manager, UserConfig b_config, ChainParameters b_params) { - long ret = bindings.C2Tuple_BlockHashChannelManagerZ_new(InternalUtils.check_arr_len(a, 32), bindings.ChannelManager_new(b_fee_est == null ? 0 : b_fee_est.ptr, b_chain_monitor == null ? 0 : b_chain_monitor.ptr, b_tx_broadcaster == null ? 0 : b_tx_broadcaster.ptr, b_logger == null ? 0 : b_logger.ptr, b_keys_manager == null ? 0 : b_keys_manager.ptr, b_config == null ? 0 : b_config.ptr, b_params == null ? 0 : b_params.ptr)); + public static TwoTuple_BlockHashChannelManagerZ of(byte[] a, FeeEstimator b_fee_est, Watch b_chain_monitor, BroadcasterInterface b_tx_broadcaster, Router b_router, Logger b_logger, EntropySource b_entropy_source, NodeSigner b_node_signer, SignerProvider b_signer_provider, UserConfig b_config, ChainParameters b_params, int b_current_timestamp) { + long ret = bindings.C2Tuple_BlockHashChannelManagerZ_new(InternalUtils.check_arr_len(a, 32), bindings.ChannelManager_new(b_fee_est.ptr, b_chain_monitor.ptr, b_tx_broadcaster.ptr, b_router.ptr, b_logger.ptr, b_entropy_source.ptr, b_node_signer.ptr, b_signer_provider.ptr, b_config == null ? 0 : b_config.ptr, b_params == null ? 0 : b_params.ptr, b_current_timestamp)); GC.KeepAlive(a); GC.KeepAlive(b_fee_est); GC.KeepAlive(b_chain_monitor); GC.KeepAlive(b_tx_broadcaster); + GC.KeepAlive(b_router); GC.KeepAlive(b_logger); - GC.KeepAlive(b_keys_manager); + GC.KeepAlive(b_entropy_source); + GC.KeepAlive(b_node_signer); + GC.KeepAlive(b_signer_provider); GC.KeepAlive(b_config); GC.KeepAlive(b_params); + GC.KeepAlive(b_current_timestamp); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_BlockHashChannelManagerZ ret_hu_conv = new TwoTuple_BlockHashChannelManagerZ(null, ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_fee_est); }; if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_chain_monitor); }; if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_tx_broadcaster); }; + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_router); }; if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_logger); }; - if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_keys_manager); }; + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_entropy_source); }; + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_node_signer); }; + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_signer_provider); }; if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_config); }; if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_params); }; return ret_hu_conv;