Skip to content

Commit 4730cdc

Browse files
committed
fixup: Enable ChainMonitor to distribute PeerStorage
1 parent 58affb5 commit 4730cdc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lightning-liquidity/tests/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ pub(crate) fn create_liquidity_node(
467467
chan_handler: Arc::new(test_utils::TestChannelMessageHandler::new(
468468
ChainHash::using_genesis_block(Network::Testnet),
469469
)),
470-
send_only_message_handler: chain_monitor.clone(),
470+
send_only_message_handler: Arc::clone(&chain_monitor),
471471
route_handler: Arc::new(test_utils::TestRoutingMessageHandler::new()),
472472
onion_message_handler: IgnoringMessageHandler {},
473473
custom_message_handler: Arc::clone(&liquidity_manager),

lightning/src/ln/peer_handler.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,10 @@ pub struct MessageHandler<CM: Deref, RM: Deref, OM: Deref, CustomM: Deref, SM: D
440440
/// [`IgnoringMessageHandler`].
441441
pub custom_message_handler: CustomM,
442442

443-
/// A message handler which only allows sending messages.
443+
/// A message handler which only allows sending messages. This should generally be a
444+
/// [`ChainMonitor`].
445+
///
446+
/// [`ChainMonitor`]: crate::chain::chainmonitor::ChainMonitor
444447
pub send_only_message_handler: SM,
445448
}
446449

0 commit comments

Comments
 (0)