Skip to content

Commit 2f33058

Browse files
committed
Fix holder commitment variant comments
1 parent 6662c5c commit 2f33058

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -944,13 +944,12 @@ pub(crate) struct ShutdownResult {
944944
/// commitment points from our signer.
945945
#[derive(Debug, Copy, Clone)]
946946
enum HolderCommitmentPoint {
947-
// TODO: add a variant for before our first commitment point is retrieved
948947
/// We've advanced our commitment number and are waiting on the next commitment point.
949-
/// Until the `get_per_commitment_point` signer method becomes async, this variant
950-
/// will not be used.
948+
///
949+
/// We should retry advancing to `Available` via `try_resolve_pending` once our
950+
/// signer is ready to provide the next commitment point.
951951
PendingNext { transaction_number: u64, current: PublicKey },
952-
/// Our current commitment point is ready, we've cached our next point,
953-
/// and we are not pending a new one.
952+
/// Our current commitment point is ready and we've cached our next point.
954953
Available { transaction_number: u64, current: PublicKey, next: PublicKey },
955954
}
956955

0 commit comments

Comments
 (0)