Skip to content

Commit

Permalink
Merge pull request #457 from tnull/2025-02-fix-sweeper-tests
Browse files Browse the repository at this point in the history
Account for `OutputSweeper` behavioral changes in LDK v0.1.1
  • Loading branch information
tnull authored Feb 3, 2025
2 parents 3b36020 + a46048e commit b0f4443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ pub enum PendingSweepBalance {
},
/// A spending transaction has been confirmed on-chain and is awaiting threshold confirmations.
///
/// It will be considered irrevocably confirmed after reaching [`ANTI_REORG_DELAY`].
/// It will be pruned after reaching [`PRUNE_DELAY_BLOCKS`] confirmations.
///
/// [`ANTI_REORG_DELAY`]: lightning::chain::channelmonitor::ANTI_REORG_DELAY
/// [`PRUNE_DELAY_BLOCKS`]: lightning::util::sweep::PRUNE_DELAY_BLOCKS
AwaitingThresholdConfirmations {
/// The identifier of the channel this balance belongs to.
channel_id: Option<ChannelId>,
Expand Down
2 changes: 1 addition & 1 deletion tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ pub(crate) fn do_channel_full_cycle<E: ElectrumApi>(
node_a.sync_wallets().unwrap();

assert!(node_b.list_balances().lightning_balances.is_empty());
assert!(node_b.list_balances().pending_balances_from_channel_closures.is_empty());
assert_eq!(node_b.list_balances().pending_balances_from_channel_closures.len(), 1);

// Check node_a properly sees all balances and sweeps them.
assert_eq!(node_a.list_balances().lightning_balances.len(), 1);
Expand Down

0 comments on commit b0f4443

Please sign in to comment.