TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] |
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_TxidCVec_C2Tuple_u32TxOutZZZ[] |
ChannelMonitor.block_connected(byte[] header,
TwoTuple_usizeTransactionZ[] 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`].
|
void |
ChannelMonitor.block_disconnected(byte[] header,
int height,
BroadcasterInterface broadcaster,
FeeEstimator fee_estimator,
Logger logger) |
Determines if the disconnected block contained any transactions of interest and updates
appropriately.
|
static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ |
UtilMethods.C2Tuple_BlockHashChannelManagerZ_read(byte[] ser,
KeysInterface arg_keys_manager,
FeeEstimator arg_fee_estimator,
Watch arg_chain_monitor,
BroadcasterInterface arg_tx_broadcaster,
Logger arg_logger,
UserConfig arg_default_config,
ChannelMonitor[] arg_channel_monitors) |
Read a C2Tuple_BlockHashChannelManagerZ from a byte array, created by C2Tuple_BlockHashChannelManagerZ_write
|
static ChainMonitor |
ChainMonitor.of(Option_FilterZ chain_source,
BroadcasterInterface broadcaster,
Logger logger,
FeeEstimator feeest,
Persist persister) |
Creates a new `ChainMonitor` used to watch on-chain activity pertaining to channels.
|
static ChannelManager |
ChannelManager.of(FeeEstimator fee_est,
Watch chain_monitor,
BroadcasterInterface tx_broadcaster,
Logger logger,
KeysInterface keys_manager,
UserConfig config,
ChainParameters params) |
Constructs a new ChannelManager to hold several channels and route between them.
|
static ChannelManagerReadArgs |
ChannelManagerReadArgs.of(KeysInterface keys_manager,
FeeEstimator fee_estimator,
Watch chain_monitor,
BroadcasterInterface tx_broadcaster,
Logger logger,
UserConfig default_config,
ChannelMonitor[] channel_monitors) |
Simple utility function to create a ChannelManagerReadArgs which creates the monitor
HashMap for you.
|
static TwoTuple_BlockHashChannelManagerZ |
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) |
Creates a new C2Tuple_BlockHashChannelManagerZ from the contained elements.
|
void |
ChannelManagerReadArgs.set_fee_estimator(FeeEstimator val) |
The fee_estimator for use in the ChannelManager in the future.
|
void |
ChannelMonitor.transaction_unconfirmed(byte[] txid,
BroadcasterInterface broadcaster,
FeeEstimator fee_estimator,
Logger logger) |
Processes a transaction that was reorganized out of the chain.
|
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] |
ChannelMonitor.transactions_confirmed(byte[] header,
TwoTuple_usizeTransactionZ[] 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.
|
Result_NoneMonitorUpdateErrorZ |
ChannelMonitor.update_monitor(ChannelMonitorUpdate updates,
BroadcasterInterface broadcaster,
FeeEstimator fee_estimator,
Logger logger) |
Updates a ChannelMonitor on the basis of some new information provided by the Channel
itself.
|