@@ -1590,8 +1590,6 @@ pub enum LocalHTLCFailureReason {
1590
1590
/// The HTLC was failed back because its expiry height was reached and funds were timed out
1591
1591
/// on chain.
1592
1592
OnChainTimeout ,
1593
- /// The HTLC was failed because its amount is greater than the capacity of the channel.
1594
- AmountExceedsCapacity ,
1595
1593
/// The HTLC was failed because zero amount HTLCs are not allowed.
1596
1594
ZeroAmount ,
1597
1595
/// The HTLC was failed because its amount is less than the smallest HTLC that the channel
@@ -1625,7 +1623,6 @@ impl LocalHTLCFailureReason {
1625
1623
| Self :: DustLimitCounterparty
1626
1624
| Self :: FeeSpikeBuffer
1627
1625
| Self :: ChannelNotReady
1628
- | Self :: AmountExceedsCapacity
1629
1626
| Self :: ZeroAmount
1630
1627
| Self :: HTLCMinimum
1631
1628
| Self :: HTLCMaximum
@@ -1780,11 +1777,10 @@ impl_writeable_tlv_based_enum!(LocalHTLCFailureReason,
1780
1777
( 71 , OutgoingCLTVTooSoon ) => { } ,
1781
1778
( 73 , ChannelClosed ) => { } ,
1782
1779
( 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 ) => { } ,
1788
1784
) ;
1789
1785
1790
1786
impl From < & HTLCFailReason > for HTLCHandlingFailureReason {
@@ -1897,7 +1893,6 @@ impl HTLCFailReason {
1897
1893
| LocalHTLCFailureReason :: DustLimitCounterparty
1898
1894
| LocalHTLCFailureReason :: FeeSpikeBuffer
1899
1895
| LocalHTLCFailureReason :: ChannelNotReady
1900
- | LocalHTLCFailureReason :: AmountExceedsCapacity
1901
1896
| LocalHTLCFailureReason :: ZeroAmount
1902
1897
| LocalHTLCFailureReason :: HTLCMinimum
1903
1898
| LocalHTLCFailureReason :: HTLCMaximum
0 commit comments