Skip to content

Commit 8ebda06

Browse files
committed
Turn IrrevocablyResolvedHTLC comment into a Rust comment
1 parent 553e6c7 commit 8ebda06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/chain/channelmonitor.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,10 @@ struct IrrevocablyResolvedHTLC {
791791
payment_preimage: Option<PaymentPreimage>,
792792
}
793793

794-
// In LDK versions prior to 0.0.111 commitment_tx_output_idx was not Option-al and
795-
// IrrevocablyResolvedHTLC objects only existed for non-dust HTLCs. This was a bug, but to maintain
796-
// backwards compatibility we must ensure we always write out a commitment_tx_output_idx field,
797-
// using `u32::MAX` as a sentinal to indicate the HTLC was dust.
794+
/// In LDK versions prior to 0.0.111 commitment_tx_output_idx was not Option-al and
795+
/// IrrevocablyResolvedHTLC objects only existed for non-dust HTLCs. This was a bug, but to maintain
796+
/// backwards compatibility we must ensure we always write out a commitment_tx_output_idx field,
797+
/// using [`u32::MAX`] as a sentinal to indicate the HTLC was dust.
798798
impl Writeable for IrrevocablyResolvedHTLC {
799799
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), io::Error> {
800800
let mapped_commitment_tx_output_idx = self.commitment_tx_output_idx.unwrap_or(u32::MAX);

0 commit comments

Comments
 (0)