File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -791,10 +791,10 @@ struct IrrevocablyResolvedHTLC {
791
791
payment_preimage : Option < PaymentPreimage > ,
792
792
}
793
793
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.
798
798
impl Writeable for IrrevocablyResolvedHTLC {
799
799
fn write < W : Writer > ( & self , writer : & mut W ) -> Result < ( ) , io:: Error > {
800
800
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