Skip to content

Commit cb51a27

Browse files
committed
Add ASCII art diagram explaining offers_tests
1 parent 63a75eb commit cb51a27

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

lightning/src/ln/offers_tests.rs

+27
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,33 @@
1313
//! to initiate and request payment for them, respectively. It also manages the payment flow via
1414
//! implementing [`OffersMessageHandler`]. This module tests that functionality, including the
1515
//! resulting [`Event`] generation.
16+
//!
17+
//! Two-node success tests use an announced channel:
18+
//!
19+
//! Alice --- Bob
20+
//!
21+
//! While two-node failure tests use an unannounced channel:
22+
//!
23+
//! Alice ... Bob
24+
//!
25+
//! Six-node tests use unannounced channels for the sender and recipient and announced channels for
26+
//! the rest of the network.
27+
//!
28+
//! nodes[4]
29+
//! / \
30+
//! / \
31+
//! / \
32+
//! Alice ... Bob -------- Charlie ... David
33+
//! \ /
34+
//! \ /
35+
//! \ /
36+
//! nodes[5]
37+
//!
38+
//! Unnamed nodes are needed to ensure unannounced nodes can create two-hop blinded paths.
39+
//!
40+
//! Nodes without channels are disconnected and connected as needed to ensure that deterministic
41+
//! blinded paths are used.
42+
1643

1744
use core::time::Duration;
1845
use crate::blinded_path::BlindedPath;

0 commit comments

Comments
 (0)