Skip to content

Commit 2558aca

Browse files
committed
Resolving conflicts
1 parent 8f50f3c commit 2558aca

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3024,8 +3024,8 @@ where
30243024
/// the latest local transaction(s). Fails if `channel_id` is unknown to the manager, or if the
30253025
/// `counterparty_node_id` isn't the counterparty of the corresponding channel.
30263026
///
3027-
/// You can always get the latest local transaction(s) to broadcast from
3028-
/// [`ChannelMonitor::get_latest_holder_commitment_txn`].
3027+
/// You can always broadcast the latest local transaction(s) via
3028+
/// [`ChannelMonitor::broadcast_latest_holder_commitment_txn`].
30293029
pub fn force_close_without_broadcasting_txn(&self, channel_id: &ChannelId, counterparty_node_id: &PublicKey, error_message: String)
30303030
-> Result<(), APIError> {
30313031
self.force_close_sending_error(channel_id, counterparty_node_id, false, error_message)

lightning/src/ln/monitor_tests.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,8 +2757,9 @@ fn do_test_monitor_claims_with_random_signatures(anchors: bool, confirm_counterp
27572757
(&nodes[0], &nodes[1])
27582758
};
27592759

2760-
let error_message = "Channel force-closed";
2761-
closing_node.node.force_close_broadcasting_latest_txn(&chan_id, &other_node.node.get_our_node_id(), error_message.to_string()).unwrap();
2760+
get_monitor!(closing_node, chan_id).broadcast_latest_holder_commitment_txn(
2761+
&closing_node.tx_broadcaster, &closing_node.fee_estimator, &closing_node.logger
2762+
);
27622763

27632764
// The commitment transaction comes first.
27642765
let commitment_tx = {

0 commit comments

Comments
 (0)