Skip to content

Commit

Permalink
Add ASCII art diagram explaining offers_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkczyz committed Jan 5, 2024
1 parent ee8d67b commit 4a7051f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lightning/src/ln/offers_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,33 @@
//! to initiate and request payment for them, respectively. It also manages the payment flow via
//! implementing [`OffersMessageHandler`]. This module tests that functionality, including the
//! resulting [`Event`] generation.
//!
//! Two-node success tests use an announced channel:
//!
//! Alice --- Bob
//!
//! While two-node failure tests use an unannounced channel:
//!
//! Alice ... Bob
//!
//! Six-node tests use unannounced channels for the sender and recipient and announced channels for
//! the rest of the network.
//!
//! nodes[4]
//! / \
//! / \
//! / \
//! Alice ... Bob -------- Charlie ... David
//! \ /
//! \ /
//! \ /
//! nodes[5]
//!
//! Unnamed nodes are needed to ensure unannounced nodes can create two-hop blinded paths.
//!
//! Nodes without channels are disconnected and connected as needed to ensure that deterministic
//! blinded paths are used.


use core::time::Duration;
use crate::blinded_path::BlindedPath;
Expand Down

0 comments on commit 4a7051f

Please sign in to comment.