Skip to content

Commit 7fd8c8c

Browse files
f: clarify name and doc of lsps2/service::funding_tx_broadcast_safe
1 parent 28bf6a3 commit 7fd8c8c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lightning-liquidity/src/lsps2/service.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,9 +1608,10 @@ where
16081608
Ok(())
16091609
}
16101610

1611-
/// Called when the funding transaction is safe to broadcast.
1612-
/// This marks the funding_tx_broadcast_safe flag as true for the given user_channel_id.
1613-
pub fn funding_tx_broadcast_safe(
1611+
/// This should be called when the event [`Event::FundingTxBroadcastSafe`] is received.
1612+
///
1613+
/// [`Event::FundingTxBroadcastSafe`]: lightning::events::Event::FundingTxBroadcastSafe
1614+
pub fn set_funding_tx_broadcast_safe(
16141615
&self, user_channel_id: u128, counterparty_node_id: &PublicKey,
16151616
) -> Result<(), APIError> {
16161617
let outer_state_lock = self.per_peer_state.read().unwrap();

lightning-liquidity/tests/lsps2_integration_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ fn create_channel_with_manual_broadcast(
13161316
assert_eq!(funding_txo.vout, funding_outpoint.index as u32);
13171317

13181318
service_handler
1319-
.funding_tx_broadcast_safe(*user_channel_id, counterparty_node_id)
1319+
.set_funding_tx_broadcast_safe(*user_channel_id, counterparty_node_id)
13201320
.unwrap();
13211321
},
13221322
_ => panic!("Unexpected event"),

0 commit comments

Comments
 (0)