@@ -1590,8 +1590,6 @@ pub enum LocalHTLCFailureReason {
15901590 /// The HTLC was failed back because its expiry height was reached and funds were timed out
15911591 /// on chain.
15921592 OnChainTimeout ,
1593- /// The HTLC was failed because its amount is greater than the capacity of the channel.
1594- AmountExceedsCapacity ,
15951593 /// The HTLC was failed because zero amount HTLCs are not allowed.
15961594 ZeroAmount ,
15971595 /// The HTLC was failed because its amount is less than the smallest HTLC that the channel
@@ -1625,7 +1623,6 @@ impl LocalHTLCFailureReason {
16251623 | Self :: DustLimitCounterparty
16261624 | Self :: FeeSpikeBuffer
16271625 | Self :: ChannelNotReady
1628- | Self :: AmountExceedsCapacity
16291626 | Self :: ZeroAmount
16301627 | Self :: HTLCMinimum
16311628 | Self :: HTLCMaximum
@@ -1780,11 +1777,10 @@ impl_writeable_tlv_based_enum!(LocalHTLCFailureReason,
17801777 ( 71 , OutgoingCLTVTooSoon ) => { } ,
17811778 ( 73 , ChannelClosed ) => { } ,
17821779 ( 75 , OnChainTimeout ) => { } ,
1783- ( 77 , AmountExceedsCapacity ) => { } ,
1784- ( 79 , ZeroAmount ) => { } ,
1785- ( 81 , HTLCMinimum ) => { } ,
1786- ( 83 , HTLCMaximum ) => { } ,
1787- ( 85 , PeerOffline ) => { } ,
1780+ ( 77 , ZeroAmount ) => { } ,
1781+ ( 79 , HTLCMinimum ) => { } ,
1782+ ( 81 , HTLCMaximum ) => { } ,
1783+ ( 83 , PeerOffline ) => { } ,
17881784) ;
17891785
17901786impl From < & HTLCFailReason > for HTLCHandlingFailureReason {
@@ -1897,7 +1893,6 @@ impl HTLCFailReason {
18971893 | LocalHTLCFailureReason :: DustLimitCounterparty
18981894 | LocalHTLCFailureReason :: FeeSpikeBuffer
18991895 | LocalHTLCFailureReason :: ChannelNotReady
1900- | LocalHTLCFailureReason :: AmountExceedsCapacity
19011896 | LocalHTLCFailureReason :: ZeroAmount
19021897 | LocalHTLCFailureReason :: HTLCMinimum
19031898 | LocalHTLCFailureReason :: HTLCMaximum
0 commit comments