Skip to content

Commit 0817828

Browse files
committed
f Add note pertaining Maybe.. balances
1 parent 5460e98 commit 0817828

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/balance.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ use lightning::ln::{ChannelId, PaymentHash, PaymentPreimage};
88
#[derive(Debug, Clone)]
99
pub struct BalanceDetails {
1010
/// The total balance that we would be able to claim across all our Lightning channels.
11+
///
12+
/// Note this excludes balances that we are unsure if we are able to claim (e.g., as we are
13+
/// waiting for a preimage or for a timeout to expire). These balances will however be included
14+
/// as [`MaybePreimageClaimableHTLC`] and
15+
/// [`MaybeTimeoutClaimableHTLC`] in [`lightning_balances`].
16+
///
17+
/// [`MaybePreimageClaimableHTLC`]: LightningBalance::MaybePreimageClaimableHTLC
18+
/// [`MaybeTimeoutClaimableHTLC`]: LightningBalance::MaybeTimeoutClaimableHTLC
19+
/// [`lightning_balances`]: Self::lightning_balances
1120
pub total_lightning_balance_sats: u64,
1221
/// A detailed list of all known Lightning balances.
1322
pub lightning_balances: Vec<LightningBalance>,

0 commit comments

Comments
 (0)