Skip to content

Commit 7833e53

Browse files
Static invoice server: fix incorrect comment
The comment stated we need peers to be connected in order to send certain onion messages, but we actually need those peers available in order to create reply paths.
1 parent 3691e8f commit 7833e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12853,7 +12853,7 @@ where
1285312853

1285412854
// While we usually refresh the AsyncReceiveOfferCache on a timer, we also want to start
1285512855
// interactively building offers as soon as we can after startup. We can't start building offers
12856-
// until we have some peer connection(s) to send onion messages over, so as a minor optimization
12856+
// until we have some peer connection(s) to receive onion messages over, so as a minor optimization
1285712857
// refresh the cache when a peer connects.
1285812858
#[cfg(async_payments)]
1285912859
self.check_refresh_async_receive_offer_cache(false);

0 commit comments

Comments
 (0)