Uses of Class
org.ldk.util.TwoTuple
-
Packages that use TwoTuple Package Description org.ldk.batteries org.ldk.structs -
-
Uses of TwoTuple in org.ldk.batteries
Fields in org.ldk.batteries declared as TwoTuple Modifier and Type Field Description TwoTuple<ChannelMonitor,byte[]>[]
ChannelManagerConstructor. channel_monitors
A list of ChannelMonitors and the last block they each saw. -
Uses of TwoTuple in org.ldk.structs
Fields in org.ldk.structs declared as TwoTuple Modifier and Type Field Description TwoTuple<byte[],ChannelManager>
Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_OK. res
TwoTuple<byte[],ChannelMonitor>
Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_OK. res
TwoTuple<byte[],byte[][]>
Result_C2Tuple_SignatureCVec_SignatureZZNoneZ.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ_OK. res
TwoTuple<byte[],ChannelMonitor>[]
Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_OK. res
TwoTuple<Long,byte[]>
Option_C2Tuple_usizeTransactionZZ.Some. some
Methods in org.ldk.structs that return TwoTuple Modifier and Type Method Description TwoTuple<byte[],TwoTuple<Integer,TxOut>[]>[]
ChannelMonitor. best_block_updated(byte[] header, int height, BroadcasterInterface broadcaster, FeeEstimator fee_estimator, Logger logger)
Updates the monitor with the current best chain tip, returning new outputs to watch.TwoTuple<byte[],TwoTuple<Integer,TxOut>[]>[]
ChannelMonitor. block_connected(byte[] header, TwoTuple<Long,byte[]>[] txdata, int height, BroadcasterInterface broadcaster, FeeEstimator fee_estimator, Logger logger)
Processes transactions in a newly connected block, which may result in any of the following: - update the monitor's state against resolved HTLCs - punish the counterparty in the case of seeing a revoked commitment transaction - force close the channel and claim/timeout incoming/outgoing HTLCs if near expiration - detect settled outputs for later spending - schedule and bump any in-flight claims Returns any new outputs to watch from `txdata`; after called, these are also included in [`get_outputs_to_watch`].TwoTuple<byte[],byte[]>
ChannelManager. create_inbound_payment(Option_u64Z min_value_msat, int invoice_expiry_delta_secs, long user_payment_id)
Gets a payment secret and payment hash for use in an invoice given to a third party wishing to pay us.TwoTuple<byte[],Type>[]
CustomMessageHandler.CustomMessageHandlerInterface. get_and_clear_pending_msg()
Gets the list of pending messages which were generated by the custom message handler, clearing the list in the process.TwoTuple<byte[],Type>[]
CustomMessageHandler. get_and_clear_pending_msg()
Gets the list of pending messages which were generated by the custom message handler, clearing the list in the process.TwoTuple<OutPoint,byte[]>
ChannelMonitor. get_funding_txo()
Gets the funding transaction outpoint of the channel this ChannelMonitor is monitoring for.TwoTuple<byte[],TwoTuple<Integer,byte[]>[]>[]
ChannelMonitor. get_outputs_to_watch()
Gets a list of txids, with their output scripts (in the order they appear in the transaction), which we must learn about spends of via block_connected().TwoTuple<byte[],TwoTuple<Integer,TxOut>[]>[]
ChannelMonitor. transactions_confirmed(byte[] header, TwoTuple<Long,byte[]>[] txdata, int height, BroadcasterInterface broadcaster, FeeEstimator fee_estimator, Logger logger)
Processes transactions confirmed in a block with the given header and height, returning new outputs to watch.Methods in org.ldk.structs with parameters of type TwoTuple Modifier and Type Method Description TwoTuple<byte[],TwoTuple<Integer,TxOut>[]>[]
ChannelMonitor. block_connected(byte[] header, TwoTuple<Long,byte[]>[] txdata, int height, BroadcasterInterface broadcaster, FeeEstimator fee_estimator, Logger logger)
Processes transactions in a newly connected block, which may result in any of the following: - update the monitor's state against resolved HTLCs - punish the counterparty in the case of seeing a revoked commitment transaction - force close the channel and claim/timeout incoming/outgoing HTLCs if near expiration - detect settled outputs for later spending - schedule and bump any in-flight claims Returns any new outputs to watch from `txdata`; after called, these are also included in [`get_outputs_to_watch`].static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ
Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ. ok(TwoTuple<byte[],ChannelManager> o)
Creates a new CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ in the success state.static Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ
Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ. ok(TwoTuple<byte[],ChannelMonitor> o)
Creates a new CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ in the success state.static Result_C2Tuple_SignatureCVec_SignatureZZNoneZ
Result_C2Tuple_SignatureCVec_SignatureZZNoneZ. ok(TwoTuple<byte[],byte[][]> o)
Creates a new CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ in the success state.static Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ
Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ. ok(TwoTuple<byte[],ChannelMonitor>[] o)
Creates a new CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ in the success state.static Option_C2Tuple_usizeTransactionZZ
Option_C2Tuple_usizeTransactionZZ. some(TwoTuple<Long,byte[]> o)
Constructs a new COption_C2Tuple_usizeTransactionZZ containing a crate::c_types::derived::C2Tuple_usizeTransactionZTwoTuple<byte[],TwoTuple<Integer,TxOut>[]>[]
ChannelMonitor. transactions_confirmed(byte[] header, TwoTuple<Long,byte[]>[] txdata, int height, BroadcasterInterface broadcaster, FeeEstimator fee_estimator, Logger logger)
Processes transactions confirmed in a block with the given header and height, returning new outputs to watch.void
Confirm.ConfirmInterface. transactions_confirmed(byte[] header, TwoTuple<Long,byte[]>[] txdata, int height)
Processes transactions confirmed in a block with a given header and height.void
Confirm. transactions_confirmed(byte[] header, TwoTuple<Long,byte[]>[] txdata, int height)
Processes transactions confirmed in a block with a given header and height.
-