File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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.
798798impl 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 ) ;
You can’t perform that action at this time.
0 commit comments